Add a debug prompt endpoint so that we can play with the prompts live
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class AdminController < ApplicationController
|
||||
before_action :ensure_staff
|
||||
|
||||
private
|
||||
def ensure_staff
|
||||
head :forbidden unless Current.user.staff?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user