Interface fix: admin cannot edit other admins' bookmarks.

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@310 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2009-04-11 17:05:41 +00:00
parent d3642f6b0e
commit 9a37642ab5

View file

@ -109,7 +109,7 @@ class BookmarkService {
$userid = $userservice->getCurrentUserId(); $userid = $userservice->getCurrentUserId();
if(!is_numeric($userid)) if(!is_numeric($userid))
return false; // useful for few servers configuration (see brunaud bugs) return false; // useful for few servers configuration (see brunaud bugs)
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid)) if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid) && !$userservice->isAdmin($bookmark['uId']))
return true; return true;
else else
return ($bookmark['uId'] == $userid); return ($bookmark['uId'] == $userid);