only admin can manage config

master
Jean-Christian Paul Denis 2021-11-02 23:59:13 +01:00
parent a43e4015cd
commit 9367b25869
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ if (!defined('DC_CONTEXT_MODULE')) {
return null;
}
# Check user perms
dcPage::check('admin');
$redir = empty($_REQUEST['redir']) ?
$list->getURL() . '#plugins' : $_REQUEST['redir'];