This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Manager | |
# Controller for managing account | |
class AccountController < ManagerController | |
include Manager::AccountHelper | |
skip_before_action :redirect_deactivated_account_to_reactivation | |
before_action :admin_required | |
def admin_required | |
redirect_to home_path if current_user.role == 'user' | |
end |