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:
parent
d3642f6b0e
commit
9a37642ab5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue