Fix tests

This commit is contained in:
Jorge Manrubia
2025-11-12 11:37:06 +01:00
parent cc612479f0
commit 9903a37243
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ module User::Role
admin? || other == self
end
def can_administer?
def can_administer?(other)
admin? && other != self
end
+1 -1
View File
@@ -3,7 +3,7 @@
<% content_for :header do %>
<h1 class="header__title">
<%= @page_title %>
<% unless Current.user.can_administer?%>
<% unless Current.user.admin? %>
<div class="txt-normal font-weight-normal">Only admins can change these settings</div>
<% end %>
</h1>