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:
parent
35058ddd07
commit
51e844e17e
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class SemanticScuttle_Model_User
|
||||||
// Look for value only if not already set
|
// Look for value only if not already set
|
||||||
if(!isset($this->isAdmin)) {
|
if(!isset($this->isAdmin)) {
|
||||||
$us = SemanticScuttle_Service_Factory::get('User');
|
$us = SemanticScuttle_Service_Factory::get('User');
|
||||||
$this->isAdmin = $us->isAdmin($this->id);
|
$this->isAdmin = $us->isAdmin($this->username);
|
||||||
}
|
}
|
||||||
return $this->isAdmin;
|
return $this->isAdmin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue