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

Revert "Temporarily disable user updates"

This reverts commit 6ffd0a47.
parent 8e2ac2cd
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ class UserPolicy < ApplicationPolicy ...@@ -14,7 +14,7 @@ class UserPolicy < ApplicationPolicy
end end
def update? def update?
false user? && user.admin?
end end
def destroy? def destroy?
......
...@@ -2,10 +2,8 @@ ...@@ -2,10 +2,8 @@
</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