diff options
Diffstat (limited to 'app/graphql/subscriptions/issuable_updated.rb')
-rw-r--r-- | app/graphql/subscriptions/issuable_updated.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/graphql/subscriptions/issuable_updated.rb b/app/graphql/subscriptions/issuable_updated.rb index c1d82bfcf9c..ad78fd4b4a1 100644 --- a/app/graphql/subscriptions/issuable_updated.rb +++ b/app/graphql/subscriptions/issuable_updated.rb @@ -15,10 +15,6 @@ module Subscriptions end def authorized?(issuable_id:) - # TODO: remove this check when the compatibility layer is removed - # See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883 - raise Gitlab::Graphql::Errors::ArgumentError, 'Invalid IssuableID' unless issuable_id.is_a?(GlobalID) - issuable = force(GitlabSchema.find_by_gid(issuable_id)) unauthorized! unless issuable && Ability.allowed?(current_user, :"read_#{issuable.to_ability_name}", issuable) |