[rt-users] Viewing user profiles without modification rights?

Johnathan Bell johnathan.bell at baker.edu
Fri Aug 21 15:45:58 EDT 2009


I figured it out. It may not be the "cleanest", but it works...

I have an overlaid version of "Ticket/Elements/ShowRequestor", below  
are my modificaitons (in the order that they are in the file):

Change this:
next if $requestor->Privileged;

To this:
#next if $requestor->Privileged;

Change this:
title_href => $has_right_adminusers? RT->Config->Get('WebPath')."/ 
Admin/Users/Modify.html?id=".$requestor->id: undef,

To this:
title_href => RT->Config->Get('WebPath')."/Admin/Users/Modify.html? 
id=".$requestor->id,

Add this:
<&|/l&>User Profile</&>:<br/>

% my $requestorP = RT::User->new($RT::SystemUser);
% $requestorP->Load($requestor->id);
% my @items = (
%# Change "etc" to whatever makes sense for your org.
%   ["etc",      $requestorP->Organization],
%   ["etc",      $requestorP->WorkPhone],
%   ["etc",     $requestorP->City],
%   ["etc", $requestorP->Address2] );

<ul>
% foreach my $item ( @items ) {
%   if ( ${$item}[1] ne "" ) {
       <li><% ${$item}[0] %>: <% ${$item}[1] %></li>
%   }
% }
</ul>

Wherever you want in the profile (I do just before "<&|/l&>Groups this  
user belongs to</&>")

Thanks,
Johnathan


On Aug 6, 2009, at 2:01 PM, Jerrad Pierce wrote:

> On Mon, Jul 27, 2009 at 08:57, Johnathan  
> Bell<johnathan.bell at baker.edu> wrote:
>> Actually, no, the modify user page produces an error... the page  
>> actually
>> doesn't say anything, (except for the page footer text of "Time to  
>> display:
>> x.xxxxxxx" and "RT 3.8.4 Copyright 1996-2009 Best Practical blah blah
>> blah"... the long itself says nothing either.
>
> Apparently you also need ShowConfigTab
>
> -- 
> Cambridge Energy Alliance: Save money. Save the planet.

--
Johnathan Bell
Internet System Administrator, Baker College

Office Hours: 7A - 4P Eastern, M-F




More information about the rt-users mailing list