ref: master
plugins/admin_notifications/controllers/admin_notifications_plugin_admin_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
class AdminNotificationsPluginAdminController < AdminController include AdminNotificationsPlugin::NotificationManager before_filter :admin_required protected def target environment end def admin_required redirect_to :root unless current_person.is_admin? end end |