diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-06 18:25:24 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-06 19:26:22 -0600 |
commit | 87cdb156ce51a1300f833c633b802b9be5c980d0 (patch) | |
tree | ef485d344ebf775d1c9ccaa6d3231178050bfad5 /app/models/user.rb | |
parent | 46dff6910d2f618222e4213dca55ba68b5b66984 (diff) | |
download | gitlab-ce-87cdb156ce51a1300f833c633b802b9be5c980d0.tar.gz |
Fix indentationee-1439-read-only-user
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 79c83f7bcf4..7023a7956d1 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 |