From 3a5dafcdc4efff42ff7f6d4f630b7666ff73248f Mon Sep 17 00:00:00 2001 From: mensonge Date: Mon, 9 Feb 2009 14:05:21 +0000 Subject: 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 --- tagcommondescriptionedit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tagcommondescriptionedit.php') 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(); -- cgit v1.2.3