[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-218-g5de7c60

Alex Vandiver alexmv at bestpractical.com
Thu Aug 5 16:18:43 EDT 2010


The branch, 3.9-trunk has been updated
       via  5de7c6062e11f6c4ee2c514839f6fc3b41ca9cc3 (commit)
      from  c695ebe8a7a1b247970c3a55c591e6e010456c79 (commit)

Summary of changes:
 lib/RT/User_Overlay.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 5de7c6062e11f6c4ee2c514839f6fc3b41ca9cc3
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Aug 5 16:19:46 2010 -0400

    Split SetPrivileged into a right-checking half and a modify half

diff --git a/lib/RT/User_Overlay.pm b/lib/RT/User_Overlay.pm
index 21a9e4f..ffc8c7a 100755
--- a/lib/RT/User_Overlay.pm
+++ b/lib/RT/User_Overlay.pm
@@ -283,6 +283,12 @@ sub SetPrivileged {
         return ( 0, $self->loc('Permission Denied') );
     }
 
+    $self->_SetPrivileged($val);
+}
+
+sub _SetPrivileged {
+    my $self = shift;
+    my $val = shift;
     my $priv = RT::Group->new($self->CurrentUser);
     $priv->LoadSystemInternalGroup('Privileged');
     unless ($priv->Id) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list