Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facem-backoffice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACEM
facem-backoffice
Commits
05c0d562
Verified
Commit
05c0d562
authored
1 month ago
by
David Gunnarsson
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Temporarily disable user updates"
This reverts commit
6ffd0a47
.
parent
8e2ac2cd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/policies/user_policy.rb
+1
-1
1 addition, 1 deletion
app/policies/user_policy.rb
app/views/avo/partials/_sidebar_extra.html.erb
+4
-6
4 additions, 6 deletions
app/views/avo/partials/_sidebar_extra.html.erb
with
5 additions
and
7 deletions
app/policies/user_policy.rb
+
1
−
1
View file @
05c0d562
...
...
@@ -14,7 +14,7 @@ class UserPolicy < ApplicationPolicy
end
def
update?
false
user?
&&
user
.
admin?
end
def
destroy?
...
...
This diff is collapsed.
Click to expand it.
app/views/avo/partials/_sidebar_extra.html.erb
+
4
−
6
View file @
05c0d562
...
...
@@ -2,10 +2,8 @@
</div>
<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"
%>
<div
class=
"w-full space-y-1"
>
<%=
render
Avo
::
Sidebar
::
LinkComponent
.
new
label:
"Change Password"
,
path:
avo
.
settings_password_path
%>
</div>
<%
end
%>
<%=
render
Avo
::
Sidebar
::
HeadingComponent
.
new
label:
"Your Account"
%>
<div
class=
"w-full space-y-1"
>
<%=
render
Avo
::
Sidebar
::
LinkComponent
.
new
label:
"Change Password"
,
path:
avo
.
settings_password_path
%>
</div>
</div>
This diff is collapsed.
Click to expand it.
David Gunnarsson
@davidg73
mentioned in commit
62740339
·
1 month ago
mentioned in commit
62740339
mentioned in commit 6274033986e59f6dcbe16ca01854f9b83dd82cd3
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment