ROBERT David wrote:
> Mike,
> 
> I changed my User_Local.pm the way you advised. For fields not needing any 
> change, I get lines like this
> [Fri Feb 22 11:03:44 2008] [debug]: SetAddress1 Failed. Ceci est déjà la 
> valeur actuelle (/opt/rt3/lib/RT/User_Local.pm:614) (french for "This is 
> already current value")
> 
> But when it comes to fields needing an update that's another story:
> [Fri Feb 22 11:03:44 2008] [debug]: SetExternalAuthId Failed. Accès refusé 
> (/opt/rt3/lib/RT/User_Local.pm:614) (french for "Acces Denied").
> 

Mike Peachey wrote:
> The problem is almost certainly permissions, and I've suddenly come a 
> cropper on it too.

Then it definitely is the permissions issue.

Note the following I said before:

> Since you are calling the Set$method methods on the User Object itself, 
> if that user doesn't have permission to change their own details, you 
> can't do it.
> 
> You can get around it by doing something like this which is to create an 
> RT::SystemUser object, and then load the user inside it.
> 
>              my $UserObj = RT::User->new($RT::SystemUser);
>              $UserObj->Load($name_to_update);
>              my ($val, $message) = $UserObj->Set$method($value);


-- 
Kind Regards,

__________________________________________________

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
__________________________________________________
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to