[Bps-public-commit] RT-Extension-rt_cpan_org branch, rt4, updated. 386a61eb155c244efab019a54e6b55cdefb02142

Thomas Sibley trs at bestpractical.com
Tue Apr 2 01:53:00 EDT 2013


The branch, rt4 has been updated
       via  386a61eb155c244efab019a54e6b55cdefb02142 (commit)
      from  708c7db7df2d155192e94ce9ca0cd9725a39b968 (commit)

Summary of changes:
 html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 386a61eb155c244efab019a54e6b55cdefb02142
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Apr 1 22:52:09 2013 -0700

    Instead of removing the entire Tools menu, just remove Articles
    
    We may want to enable articles for rt.cpan.org at a later date, but for
    now disable menu access.

diff --git a/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged b/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
index 0d81f49..de52502 100644
--- a/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
+++ b/html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
@@ -6,9 +6,9 @@ if (my $actions = PageMenu->child("actions")) {
 }
 
 Menu->child("search")->title(loc("Search Tickets"));
-Menu->delete("tools") unless $session{CurrentUser}->HasRight(
+Menu->child("tools")->delete("articles") unless $session{CurrentUser}->HasRight(
     Object  => RT->System,
-    Right   => 'ShowConfigTab',
+    Right   => 'ShowArticle',
 );
 
 my $about = Menu->child("preferences")->add_before(

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



More information about the Bps-public-commit mailing list