diff options
Diffstat (limited to 'tagcommondescriptionedit.php')
-rw-r--r-- | tagcommondescriptionedit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tagcommondescriptionedit.php b/tagcommondescriptionedit.php index 3d13d66..aba7c43 100644 --- a/tagcommondescriptionedit.php +++ b/tagcommondescriptionedit.php @@ -39,7 +39,7 @@ $currentUser = $userservice->getCurrentObjectUser(); list ($url, $tag) = explode('/', $_SERVER['PATH_INFO']); //permissions -if(!$userservice->isLoggedOn()) { +if(!$userservice->isLoggedOn() || (!$GLOBALS['enableCommonTagDescriptionEditedByAll'] && !$currentUser->isAdmin())) { $tplVars['error'] = T_('Permission denied.'); $templateservice->loadTemplate('error.500.tpl', $tplVars); exit(); |