0011904: Disable manage profile if the user has no right
[tine20] / tine20 / Tinebase / js / MainMenu.js
index 1f0106d..92aa1b1 100644 (file)
@@ -161,7 +161,7 @@ Tine.Tinebase.MainMenu = Ext.extend(Ext.Toolbar, {
 
         this.action_editProfile = new Ext.Action({
             text: _('Edit Profile'),
 
         this.action_editProfile = new Ext.Action({
             text: _('Edit Profile'),
-            disabled: false,
+            disabled: ! Tine.Tinebase.common.hasRight('manage_own_profile', 'Tinebase'),
             handler: this.onEditProfile,
             iconCls: 'tinebase-accounttype-user'
         });
             handler: this.onEditProfile,
             iconCls: 'tinebase-accounttype-user'
         });