re-fix isAdmin() sql optimization
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@682 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
53f0a57de0
commit
e993e994bb
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
|
|||
|
||||
//user has to be either admin, or owner
|
||||
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers']
|
||||
&& $userservice->isAdmin($user->id)
|
||||
&& $userservice->isAdmin($user->username)
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue