summaryrefslogtreecommitdiff
path: root/users/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/models')
-rw-r--r--users/app/models/user.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index a06893f..2b8ead7 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -66,13 +66,8 @@ class User < CouchRest::Model::Base
login
end
-=begin
- def self.current
- Thread.current[:user]
+ def is_admin?
+ APP_CONFIG['admins'].include? self.id
end
- def self.current=(user)
- Thread.current[:user] = user
- end
-=end
end