fix
This commit is contained in:
@@ -31,7 +31,7 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def redirect_locked_accounts
|
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
|
redirect_to locked_account_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user