[Rt-commit] r2819 - in rt/branches/3.4-RELEASE: . html/SelfService/Elements

jesse at bestpractical.com jesse at bestpractical.com
Mon May 2 13:25:36 EDT 2005


Author: jesse
Date: Mon May  2 13:25:35 2005
New Revision: 2819

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/SelfService/Elements/Tabs
Log:
 r14637 at hualien:  jesse | 2005-05-02 13:24:05 -0400
 * Patch to SelfService UI to not display a preferences page unless the current user (ie all unprivileged users) has the right to do so.
 


Modified: rt/branches/3.4-RELEASE/html/SelfService/Elements/Tabs
==============================================================================
--- rt/branches/3.4-RELEASE/html/SelfService/Elements/Tabs	(original)
+++ rt/branches/3.4-RELEASE/html/SelfService/Elements/Tabs	Mon May  2 13:25:35 2005
@@ -68,11 +68,15 @@
                        },
              C => { title => loc('New ticket'),
                     path => 'SelfService/CreateTicketInQueue.html'
-                    },
-             Z => { title => loc('Preferences'),
-                    path => 'SelfService/Prefs.html'
                     }
            };
+if ($session{'CurrentUser'}->HasRight( Right => 'ModifySelf',
+				       Object => $RT::System )) {
+	$tabs->{Z} = { title => loc('Preferences'),
+		       path => 'SelfService/Prefs.html'
+		       };
+}
+
 my $actions = {
 	B => { html => $m->scomp('GotoTicket') 
 		}


More information about the Rt-commit mailing list