Skip to content

Commit 2594891

Browse files
committed
Update the AnnouncementsController to only be available to admins
This previously inherited from AdminController which actually permits access to admins _or_ organisers. This naming might be something to look at in the future but, for now, this should fix this permissions bug. Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
1 parent a93f2d9 commit 2594891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/admin/announcements_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Admin::AnnouncementsController < Admin::ApplicationController
1+
class Admin::AnnouncementsController < SuperAdmin::ApplicationController
22
before_action :set_announcement, only: %i[update edit]
33

44
def index

0 commit comments

Comments
 (0)