Skip to content

Commit

Permalink
Allow manager to modify indexmenus as well if restricted editing
Browse files Browse the repository at this point in the history
Fix #167
  • Loading branch information
Klap-in committed Dec 24, 2023
1 parent b9a84c9 commit 11ed61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function register(EventHandler $controller)
public function removeSyntaxIfNotAdmin(Event $event)
{
global $INFO;
if (!$INFO['isadmin']) {
if (!$INFO['ismanager']) {
$event->data[0][1] = preg_replace("/{{indexmenu(|_n)>.+?}}/", "", $event->data[0][1]);
}
}
Expand Down

0 comments on commit 11ed61c

Please sign in to comment.