aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Model
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:31:18 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:31:18 +0000
commit51e844e17e7adaa3a1d34cd85b29d3cbcd8eb8f3 (patch)
tree340166a54456303cd7e6a2e5184644386cc249b1 /src/SemanticScuttle/Model
parent35058ddd07266a70611b055b7e66c4cdd13d47e7 (diff)
downloadsemanticscuttle-51e844e17e7adaa3a1d34cd85b29d3cbcd8eb8f3.tar.gz
semanticscuttle-51e844e17e7adaa3a1d34cd85b29d3cbcd8eb8f3.tar.bz2
save another query
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@676 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Model')
-rw-r--r--src/SemanticScuttle/Model/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SemanticScuttle/Model/User.php b/src/SemanticScuttle/Model/User.php
index 03af5c7..ed9f454 100644
--- a/src/SemanticScuttle/Model/User.php
+++ b/src/SemanticScuttle/Model/User.php
@@ -158,7 +158,7 @@ class SemanticScuttle_Model_User
// Look for value only if not already set
if(!isset($this->isAdmin)) {
$us = SemanticScuttle_Service_Factory::get('User');
- $this->isAdmin = $us->isAdmin($this->id);
+ $this->isAdmin = $us->isAdmin($this->username);
}
return $this->isAdmin;
}