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

@@ -1,7 +1,7 @@
class Admin::AdBannersController < ApplicationController
class Admin::AdBannersController < OrbitBackendController
layout "new_admin"
before_filter :authenticate_user!
before_filter :is_admin?
before_filter :for_app_manager
def destroy
@ad_banner = AdBanner.find(params[:id])