Skip to content
Snippets Groups Projects
Commit 3ccedc51 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 99b0195c
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,7 @@ module ApplicationController::WithMaintenance
protected
def check_maintenance
if ENV['MAINTENANCE'] &&
current_user&.role != 'server_admin'
if ENV['MAINTENANCE'] && (current_user&.role != 'server_admin')
redirect_to '/maintenance'
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment