mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-31 17:34:05 +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
@@ -36,8 +36,10 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= link_to new_rooms_open_path, class: "rooms__new-btn btn room align-center gap txt-reversed", aria: { label: "New Chat Room" } do %>
|
||||
<%= image_tag "add.svg", size: 20, aria: { hidden: "true" }, style: "view-transition-name: new-room" %>
|
||||
<% if Current.user.administrator? || !Current.account.restrict_room_creation_to_administrators? %>
|
||||
<%= link_to new_rooms_open_path, class: "rooms__new-btn btn room align-center gap txt-reversed", aria: { label: "New Chat Room" } do %>
|
||||
<%= image_tag "add.svg", size: 20, aria: { hidden: "true" }, style: "view-transition-name: new-room" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user