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.

Attachment: pgpYVisBvWnp7.pgp
Description: PGP signature

Reply via email to