summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 704700b..6541305 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -78,7 +78,8 @@ class User < CouchRest::Model::Base
:login => self.login,
:ok => self.valid?,
:id => self.id,
- :enabled => self.enabled?
+ :enabled => self.enabled?,
+ :is_admin => self.is_admin?
}.to_json(options)
end