save another query

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@676 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-02-20 11:31:18 +00:00
parent 35058ddd07
commit 51e844e17e

View file

@ -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;
}