From a14192b372d994df5e5ba6b1db8683663eee27a8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sat, 20 Feb 2010 11:07:35 +0100 Subject: [PATCH] re-fix isAdmin() sql optimization --- src/SemanticScuttle/Service/Bookmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index a1bb1a5..88a9055 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -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 {