Added some localization
This commit is contained in:
@@ -16,6 +16,6 @@ class User < ActiveRecord::Base
|
||||
has_many :posts, :dependent => :destroy
|
||||
|
||||
def admin?
|
||||
true if self.username == 'admin'
|
||||
self.is_admin
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user