Skip to content

Commit

Permalink
Only let admins edit users
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Sep 25, 2024
1 parent a273898 commit c55d43b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Intended Effort Versioning](https://jacobtomlinson.
### Changed
- Invalid token creds results in 403 response, not an anonymous
response.
- Only admins can see the user list.

## [1.3.1] - 2024-09-25

Expand Down
2 changes: 2 additions & 0 deletions src/views/layouts/_nav.ecr
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<li><a href="/" class="nav-link">Home</a></li>
<% if context.current_user.try &.is_admin %>
<li><a href="/user" class="nav-link">Users</a></li>
<% end %>

0 comments on commit c55d43b

Please sign in to comment.