add specs

This commit is contained in:
Bilal
2020-09-08 16:54:17 +03:00
parent 9bafbe36db
commit ac7e67c20e
3 changed files with 53 additions and 1 deletions

View File

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