Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
¨caiovelp¨ committed Jan 15, 2025
1 parent 802e76f commit 7ed5ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def initialize_documents(user, roles)
can :read, [Assertion, Query, NotificationLog]
can :execute, [Assertion, Query]
cannot :read, [ReportConfiguration, Notification]
cannot [:destroy, :update, :create], Query
cannot [:destroy, :update, :create], [Assertion, Query]
end
if roles[Role::ROLE_COORDENACAO]
can :manage, (Ability::DOCUMENT_MODELS - [ReportConfiguration])
Expand Down

0 comments on commit 7ed5ace

Please sign in to comment.