Apply app_auth to ad_banner. From now,ad_banner can only be viewed for at least manager.
This commit is contained in:
1 parent
f427c3803f
commit
bff3cefbc7
4 files changed
+20
-8
No files matched your search
@@ -40,7 +40,8 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def auth_failed_in_backend
|
||||
redirect_to admin_dashboards_url
|
||||
#redirect_to admin_dashboards_url
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
# Check if the current_user is admin
|
||||
|
||||
Reference in new issue
Block a user