mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-29 21:46:39 +09:00
Always just go through the settings object
This commit is contained in:
@@ -32,7 +32,7 @@ class RoomsController < ApplicationController
|
||||
end
|
||||
|
||||
def ensure_permission_to_create_rooms
|
||||
if Current.account.restrict_room_creation_to_administrators? && !Current.user.administrator?
|
||||
if Current.account.settings.restrict_room_creation_to_administrators? && !Current.user.administrator?
|
||||
head :forbidden
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user