FEATURE: we need admin login always

This commit is contained in:
Sam Saffron 2015-06-05 18:43:59 +10:00
parent f1637fc11e
commit 4409a3072d
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ class UsersController < ApplicationController
end
def admin_login
unless SiteSetting.enable_sso && !current_user
if current_user
return redirect_to path("/")
end