[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-97-g79599d4
Emannuel Lacour
elacour at bestpractical.com
Tue Jun 22 10:58:54 EDT 2010
The branch, 3.8-trunk has been updated
via 79599d4d8880050b93ac9e4d1b774b82685309d6 (commit)
from 4b18e2f094154a506cd7c916501324c2f972d63f (commit)
Summary of changes:
share/html/Admin/Elements/CustomFieldTabs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 79599d4d8880050b93ac9e4d1b774b82685309d6
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date: Tue Jun 22 16:58:53 2010 +0200
Show CustomField configuration tab only if user has right to change something (broken behaviour in previous commit)
diff --git a/share/html/Admin/Elements/CustomFieldTabs b/share/html/Admin/Elements/CustomFieldTabs
index fb95394..627877f 100644
--- a/share/html/Admin/Elements/CustomFieldTabs
+++ b/share/html/Admin/Elements/CustomFieldTabs
@@ -88,9 +88,12 @@ if ($id) {
}
}
+if ( $session{'CurrentUser'}->HasRight( Object => $RT::System, Right => 'AdminCustomField')
+ || $session{'CurrentUser'}->HasRight( Object => $RT::System, Right => 'AdminCustomFieldValues') ) {
$tabs->{"A"} = { title => loc('Select'),
path => "Admin/CustomFields/",
};
+}
if ($session{'CurrentUser'}->HasRight( Object => $RT::System, Right => 'AdminCustomField')) {
$tabs->{"B"} = { title => loc('Create'),
path => "Admin/CustomFields/Modify.html?Create=1",
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list