Only admins can manage join codes

This commit is contained in:
Jorge Manrubia
2025-11-12 11:30:29 +01:00
parent dba3b2d65d
commit e67cdd986f
2 changed files with 15 additions and 0 deletions
@@ -1,5 +1,6 @@
class Account::JoinCodesController < ApplicationController
before_action :set_join_code
before_action :ensure_admin, only: %i[ update destroy ]
def show
end