mirror of
https://github.com/basecamp/once-campfire.git
synced 2025-12-21 13:49:52 -06:00
Better wording
This commit is contained in:
@@ -3,7 +3,7 @@ class Rooms::ClosedsController < 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 ]
|
||||
before_action :ensure_permission_to_create_rooms, only: %i[ new create ]
|
||||
|
||||
DEFAULT_ROOM_NAME = "New room"
|
||||
|
||||
|
||||
@@ -3,7 +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 ]
|
||||
before_action :ensure_permission_to_create_rooms, only: %i[ new create ]
|
||||
|
||||
DEFAULT_ROOM_NAME = "New room"
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class RoomsController < ApplicationController
|
||||
head :forbidden unless Current.user.can_administer?(@room)
|
||||
end
|
||||
|
||||
def ensure_eligible_to_create_rooms
|
||||
def ensure_permission_to_create_rooms
|
||||
if Current.account.restrict_room_creation_to_administrators? && !Current.user.administrator?
|
||||
head :forbidden
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user