summaryrefslogtreecommitdiff
path: root/tagcommondescriptionedit.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 14:05:21 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-09 14:05:21 +0000
commit3a5dafcdc4efff42ff7f6d4f630b7666ff73248f (patch)
treecefb61dde7f3ca7837761e90249e91c47a51619e /tagcommondescriptionedit.php
parent6a7316fe016688453c1eec93f5f2b9fdb09aa048 (diff)
downloadsemanticscuttle-3a5dafcdc4efff42ff7f6d4f630b7666ff73248f.tar.gz
semanticscuttle-3a5dafcdc4efff42ff7f6d4f630b7666ff73248f.tar.bz2
Minor Fix: improve common description of tags and add variable into config file to allow or not everybody to edit these descriptions [Config file modified: ]
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@263 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tagcommondescriptionedit.php')
-rw-r--r--tagcommondescriptionedit.php2
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();