diff --git a/app/models/user.rb b/app/models/user.rb index 79c83f7bcf43a9813f90f8e2a7b3c5f610a8ec6c..7023a7956d1d01298e9f2a74c59ff5fabf89defb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -912,11 +912,11 @@ class User < ActiveRecord::Base end def access_level=(new_level) - new_level = new_level.to_s - return unless %w(admin regular).include?(new_level) + new_level = new_level.to_s + return unless %w(admin regular).include?(new_level) - self.admin = (new_level == 'admin') - end + self.admin = (new_level == 'admin') + end private