Commit 87cdb156 authored by Douwe Maan's avatar Douwe Maan

Fix indentation

parent 46dff691
...@@ -912,11 +912,11 @@ class User < ActiveRecord::Base ...@@ -912,11 +912,11 @@ class User < ActiveRecord::Base
end end
def access_level=(new_level) def access_level=(new_level)
new_level = new_level.to_s new_level = new_level.to_s
return unless %w(admin regular).include?(new_level) return unless %w(admin regular).include?(new_level)
self.admin = (new_level == 'admin') self.admin = (new_level == 'admin')
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment