implement account locking/unlocking

This commit is contained in:
Bilal
2020-09-08 16:25:32 +03:00
parent 3db230de9b
commit 9bafbe36db
12 changed files with 83 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
class LockedAccountsController < ApplicationController
skip_before_action :redirect_locked_accounts
skip_after_action :verify_policy_scoped
def index
unless Current.account.locked?
redirect_to projects_path
end
end
end