summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}