Apply app_auth to ad_banner. From now,ad_banner can only be viewed for at least manager.

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-04 15:40:43 +08:00
1 parent f427c3803f
commit bff3cefbc7
4 files changed
+20 -8

No files matched your search

+2 -1
View File
@@ -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