Skip to content

Commit

Permalink
Admins can no longer delete a users home room (bigbluebutton#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Feb 25, 2020
1 parent 54234ef commit 2c1472d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/views/admins/components/_server_room_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<tr id="room-block" data-path="<%= update_settings_path(room) %>" data-room-settings=<%= room.room_settings %> data-room-access-code="<%= room.access_code %>">
<td>
<div id="room-title" class="form-inline edit_hover_class">
<% if room.id == room.owner.room_id %>
<i class="fas fa-home pr-1"></i>
<% end %>
<text id="room-name-text">
<%= room.name %>
</text>
Expand Down Expand Up @@ -58,9 +61,11 @@
<i class="dropdown-icon fas fa-users"></i> <%= t("room.share") %>
</a>
<% end %>
<a href="" data-toggle="modal" data-target="#deleteRoomModal" data-path="<%= room_path(room) %>" data-name="<%= room.name %>" class="delete-room dropdown-item">
<i class="dropdown-icon far fa-trash-alt"></i> <%= t("delete") %>
</a>
<% if room.id != room.owner.room_id %>
<a href="" data-toggle="modal" data-target="#deleteRoomModal" data-path="<%= room_path(room) %>" data-name="<%= room.name %>" class="delete-room dropdown-item">
<i class="dropdown-icon far fa-trash-alt"></i> <%= t("delete") %>
</a>
<% end %>
</div>
</div>
</td>
Expand Down

0 comments on commit 2c1472d

Please sign in to comment.