mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-26 15:46:47 +09:00
Enforce restriction to create new rooms
This commit is contained in:
1 parent
f56e33e323
commit
15db4033bc
6 files changed
+31
-2
No files matched your search
@@ -3,6 +3,7 @@ class Rooms::OpensController < RoomsController
|
||||
before_action :ensure_can_administer, only: %i[ update ]
|
||||
before_action :remember_last_room_visited, only: :show
|
||||
before_action :force_room_type, only: %i[ edit update ]
|
||||
before_action :ensure_eligible_to_create_rooms, only: %i[ new create ]
|
||||
|
||||
DEFAULT_ROOM_NAME = "New room"
|
||||
|
||||
|
||||
Reference in new issue
Block a user