Class: Subscriptions::WorkItemUpdated
- Inherits:
-
BaseSubscription
- Object
- GraphQL::Schema::Subscription
- BaseSubscription
- Subscriptions::WorkItemUpdated
- Includes:
- Gitlab::Graphql::Laziness
- Defined in:
- app/graphql/subscriptions/work_item_updated.rb
Instance Method Summary collapse
Methods included from Gitlab::Graphql::Laziness
Methods inherited from BaseSubscription
Constructor Details
This class inherits a constructor from Subscriptions::BaseSubscription
Instance Method Details
#authorized?(work_item_id:) ⇒ Boolean
13 14 15 16 17 18 19 |
# File 'app/graphql/subscriptions/work_item_updated.rb', line 13 def (work_item_id:) work_item = force(GitlabSchema.find_by_gid(work_item_id)) unless work_item && Ability.allowed?(current_user, :"read_#{work_item.to_ability_name}", work_item) true end |