re-fix isAdmin() sql optimization

This commit is contained in:
Christian Weiske 2010-02-20 11:07:35 +01:00
parent 1fd4d4d9fc
commit a14192b372

View File

@ -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 {