[Bps-public-commit] rt-extension-admin-conditions-and-actions branch, rtir-menu-support, created. 1.01-3-ga1e06c8
Dave Goehrig
dave at bestpractical.com
Wed Mar 22 13:44:03 EDT 2017
The branch, rtir-menu-support has been created
at a1e06c82989209f5ca39316d6f557e6cd345a56d (commit)
- Log -----------------------------------------------------------------
commit a1e06c82989209f5ca39316d6f557e6cd345a56d
Author: Dave Goehrig <Dave Goehrig dave at bestpractical.com>
Date: Wed Mar 22 13:40:14 2017 -0400
RTIR menu support
If you add the RTIR plugin before the Admin Condititions and Actions
plugin in you RT_SiteConfig.pm, the changes RTIR makes to the menus
breaks the RTIR paths, because the menus added by this plugin will
not find the correct menu location to install them.
This patch adds support for the location that RTIR moves the original
menus to when in the RTIR tree. RTIR moves the original menu to a
'rtkids' menu item under the top level Menu object.
diff --git a/html/Callbacks/AdminConditionsAndActions/Elements/Tabs/Privileged b/html/Callbacks/AdminConditionsAndActions/Elements/Tabs/Privileged
index 421476b..03ec6d0 100644
--- a/html/Callbacks/AdminConditionsAndActions/Elements/Tabs/Privileged
+++ b/html/Callbacks/AdminConditionsAndActions/Elements/Tabs/Privileged
@@ -49,7 +49,7 @@
return unless $session{'CurrentUser'}->HasRight( Object => RT->System, Right => 'ModifyScrips' );
-my $admin = Menu->child('admin') || Menu->child('tools')->child('config');
+my $admin = Menu->child('admin') || Menu->child('rtkids')->child('admin') || Menu->child('tools')->child('config');
my $admin_global = $admin->child('global');
my $conditions = $admin_global->child(
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list