diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 42ef8a9b3cf..f20e6b9b13a 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -3,7 +3,7 @@ require_dependency 'notification_serializer' class NotificationsController < ApplicationController requires_login - before_action :ensure_admin, only: [:create, :update, :destroy] # only admin can create/edit/delete notification + before_action :ensure_admin, only: [:create, :update, :destroy] before_action :set_notification, only: [:update, :destroy] def index