Merge pull request #5437 from AntonKhorev/user-status-resource

Use resourceful route for user status
This commit is contained in:
Andy Allan 2025-01-17 17:55:02 +00:00 committed by GitHub
commit 4370fe45ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 141 additions and 129 deletions

View file

@ -67,7 +67,8 @@ class Ability
can [:hide, :unhide], [DiaryEntry, DiaryComment]
can [:read, :resolve, :ignore, :reopen], Issue
can :create, IssueComment
can [:set_status, :destroy], User
can [:update], :user_status
can [:read, :update], :users_list
can [:create, :destroy], UserRole
end