re-fix isAdmin() sql optimization
This commit is contained in:
parent
1fd4d4d9fc
commit
a14192b372
@ -291,7 +291,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
|
|||||||
|
|
||||||
//user has to be either admin, or owner
|
//user has to be either admin, or owner
|
||||||
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers']
|
if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers']
|
||||||
&& $userservice->isAdmin($user->id)
|
&& $userservice->isAdmin($user->username)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user