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

Fix indentation

parent 46dff691
......@@ -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
......
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