debian-mirror-gitlab/app/policies/work_item_policy.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
248 B
Ruby
Raw Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
2022-05-07 20:08:51 +05:30
class WorkItemPolicy < IssuePolicy
rule { can?(:owner_access) | is_author }.enable :delete_work_item
2022-04-04 11:22:00 +05:30
2022-05-07 20:08:51 +05:30
rule { can?(:update_issue) }.enable :update_work_item
2022-04-04 11:22:00 +05:30
2022-05-07 20:08:51 +05:30
rule { can?(:read_issue) }.enable :read_work_item
2022-04-04 11:22:00 +05:30
end