[Rt-devel] [IMO BUG] With AdminQueue right
Jesse Vincent
jesse at bestpractical.com
Fri Apr 23 13:33:38 EDT 2004
I don't believe this to be a bug. If the user is the queue
administrator, one administrative function is "turn this off"
On Fri, Apr 23, 2004 at 11:36:36AM +0400, Ruslan U. Zakirov wrote:
> Hello.
> If user has AdminQueue right on Queue then he can disable it.
>
> Patch:
>
> --- lib/RT/Queue_Overlay.pm 2004-02-13 20:31:23.000000000 +0300
> +++ lib/RT/Queue_Overlay.pm.new 2004-04-23 11:30:17.000000000 +0400
> @@ -305,6 +305,16 @@
>
> =cut
>
> +sub SetDisabled {
> + my $self = shift;
> + my $value = shift;
> +
> + unless ( $self->CurrentUser->HasRight(Right => 'AdminQueue', Object
> => $RT::System) ) {
> + return ( 0, $self->loc("Permission Denied") );
> + }
> + return ( $self->_Set( Field => 'Disabled', Value => $value ) );
> +}
> +
> # }}}
>
> # {{{ sub Load
>
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
--
More information about the Rt-devel
mailing list