From 2c1472daff4b1eb961058bea4003ae4b28df85c2 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Tue, 25 Feb 2020 09:53:08 -0500 Subject: [PATCH] Admins can no longer delete a users home room (#965) --- app/views/admins/components/_server_room_row.html.erb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/admins/components/_server_room_row.html.erb b/app/views/admins/components/_server_room_row.html.erb index cfb1aa5c56..26e4892e59 100644 --- a/app/views/admins/components/_server_room_row.html.erb +++ b/app/views/admins/components/_server_room_row.html.erb @@ -16,6 +16,9 @@ data-room-access-code="<%= room.access_code %>">
+ <% if room.id == room.owner.room_id %> + + <% end %> <%= room.name %> @@ -58,9 +61,11 @@ <%= t("room.share") %> <% end %> - - <%= t("delete") %> - + <% if room.id != room.owner.room_id %> + + <%= t("delete") %> + + <% end %>