Skip to content
Snippets Groups Projects
Verified Commit 62740339 authored by David Gunnarsson's avatar David Gunnarsson
Browse files

Temporarily disable user updates again

This reverts commit 05c0d562.
parent e5cfe4dd
No related branches found
No related tags found
Loading
...@@ -14,7 +14,7 @@ class UserPolicy < ApplicationPolicy ...@@ -14,7 +14,7 @@ class UserPolicy < ApplicationPolicy
end end
def update? def update?
user? && user.admin? false
end end
def destroy? def destroy?
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
</div> </div>
<div class="space-y-1 mb-4"> <div class="space-y-1 mb-4">
<% if false # temporarily hide password update so test users dont lock out one another %>
<%= render Avo::Sidebar::HeadingComponent.new label: "Your Account" %> <%= render Avo::Sidebar::HeadingComponent.new label: "Your Account" %>
<div class="w-full space-y-1"> <div class="w-full space-y-1">
<%= render Avo::Sidebar::LinkComponent.new label: "Change Password", path: avo.settings_password_path %> <%= render Avo::Sidebar::LinkComponent.new label: "Change Password", path: avo.settings_password_path %>
</div> </div>
<% end %>
</div> </div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment