summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-06 18:25:24 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-06 19:26:22 -0600
commit87cdb156ce51a1300f833c633b802b9be5c980d0 (patch)
treeef485d344ebf775d1c9ccaa6d3231178050bfad5 /app/models
parent46dff6910d2f618222e4213dca55ba68b5b66984 (diff)
downloadgitlab-ce-87cdb156ce51a1300f833c633b802b9be5c980d0.tar.gz
Fix indentationee-1439-read-only-user
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb8
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