Skip to content

Commit

Permalink
Instead of removing the entire Tools menu, just remove Articles
Browse files Browse the repository at this point in the history
We may want to enable articles for rt.cpan.org at a later date, but for
now disable menu access.
  • Loading branch information
tsibley committed Apr 2, 2013
1 parent 708c7db commit 386a61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/Callbacks/rt_cpan_org/Elements/Tabs/Privileged
Expand Up @@ -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(
Expand Down

0 comments on commit 386a61e

Please sign in to comment.