summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:42:44 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:42:44 +0000
commite993e994bb42637edc92bc139ac695a1d6458e67 (patch)
tree4cf2c9972578a68c7a421f7baf332d9403843116
parent53f0a57de09b8a2b0155042eaa433afd06ac682e (diff)
downloadsemanticscuttle-e993e994bb42637edc92bc139ac695a1d6458e67.tar.gz
semanticscuttle-e993e994bb42637edc92bc139ac695a1d6458e67.tar.bz2
re-fix isAdmin() sql optimization
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@682 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php2
1 files changed, 1 insertions, 1 deletions
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 {