With AdminQueue right

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

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@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel