Class: Subscriptions::Ci::Pipelines::StatusUpdated
- Inherits:
-
BaseSubscription
- Object
- GraphQL::Schema::Subscription
- BaseSubscription
- Subscriptions::Ci::Pipelines::StatusUpdated
- Includes:
- Gitlab::Graphql::Laziness
- Defined in:
- app/graphql/subscriptions/ci/pipelines/status_updated.rb
Constant Summary
Constants inherited from BaseSubscription
BaseSubscription::UNAUTHORIZED_ERROR_MESSAGE
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?(pipeline_id:) ⇒ Boolean
15 16 17 18 19 20 21 |
# File 'app/graphql/subscriptions/ci/pipelines/status_updated.rb', line 15 def (pipeline_id:) pipeline = force(GitlabSchema.find_by_gid(pipeline_id)) unless pipeline && Ability.allowed?(current_user, :read_pipeline, pipeline) true end |