Enable big admin to lock user account #89

Closed
bilal.catic wants to merge 4 commits from enable-big-admin-to-lock-user-account into master
Showing only changes of commit 545d12f427 - Show all commits

View File

@@ -31,7 +31,7 @@ class ApplicationController < ActionController::Base
end
def redirect_locked_accounts
if Current.user && !Current.user.admin? && Current.account.locked?
if Current.user && !Current.user.admin? && Current.account.present? && Current.account.locked?
redirect_to locked_account_path
end
end