Only admins can manage join codes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class Account::JoinCodesController < ApplicationController
|
||||
before_action :set_join_code
|
||||
before_action :ensure_admin, only: %i[ update destroy ]
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user