[rt-users] [PATCH REQ for 4.2.2] callback for Modify.html

Kevin Falcone falcone at bestpractical.com
Tue Nov 26 11:27:34 EST 2013


On Tue, Nov 26, 2013 at 03:39:31PM +0100, Alexander Reintzsch wrote:
> sorry for capturing this thread, but same request different file. 
> Reason is, that the callback cannot set the Privileged flag, so no 
> matter what happens in the callback BeforeUpdate, the user's Privileged 
> flag cannot be modified. This patch fixes the problem. It'd be awesome 
> if you could patch it in the next version. Thank you very much.

At first glance this appears to be a reasonable change.

Please send your patch to the bug tracker or submit a pull request on
github.

-kevin

> --- share/html/Admin/Users/Modify.html	2013-07-30 14:24:52.000000000 
> +0200
> +++ local/html/Admin/Users/Modify.html	2013-11-26 15:27:27.000000000 
> +0100
> @@ -298,7 +298,7 @@
>  }
> 
> 
> -$m->callback( %ARGS, CallbackName => 'BeforeUpdate', User => $UserObj, 
> ARGSRef => \%ARGS, Results => \@results );
> +$m->callback( %ARGS, CallbackName => 'BeforeUpdate', User => $UserObj, 
> ARGSRef => \%ARGS, Results => \@results, SetPrivileged => 
> \$SetPrivileged );
> 
> 
>  # If we have a user to modify, lets try.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131126/6506d202/attachment.sig>


More information about the rt-users mailing list