Skip to content

Commit

Permalink
Merge pull request #194 from kufu/hotfix/stop_friend
Browse files Browse the repository at this point in the history
Revert "Revert "Only Admin""
  • Loading branch information
kinoppyd authored May 14, 2024
2 parents 49e501d + 47e5060 commit 35542db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/profiles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
</button>
<%= render 'dialog', profile: @profile %>
</div>
<% if @user.admin? %>
<div class="ml-2" data-controller="dialog" data-dialog-element-id-value="add-friend-dialog">
<button
class="p-2 text-sm min-h-[calc(0.587143rem+18px)] border-[rgb(214,211,208)] bg-white text-[rgb(35,34,30)] normal-button"
Expand All @@ -53,6 +54,7 @@
</div>
</dialog>
</div>
<% end %>
<% end %>

</div>
Expand Down

0 comments on commit 35542db

Please sign in to comment.