diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-28 06:09:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-28 06:09:20 +0300 |
commit | 583699499eb9f56c83563045fdd83f7ae896c082 (patch) | |
tree | d4c7bd1efabc3fa3ddba41726ed00a9c995e795d /lib | |
parent | 882c5f8e62e98f217e055770af5ea3a495dd0082 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/graphql/expose_permissions.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/graphql/expose_permissions.rb b/lib/gitlab/graphql/expose_permissions.rb index ab9ed354673..070d3c188a4 100644 --- a/lib/gitlab/graphql/expose_permissions.rb +++ b/lib/gitlab/graphql/expose_permissions.rb @@ -5,11 +5,15 @@ module Gitlab module ExposePermissions extend ActiveSupport::Concern prepended do - def self.expose_permissions(permission_type, description: 'Permissions for the current user on the resource') + def self.expose_permissions( + permission_type, + description: 'Permissions for the current user on the resource', + &block) field :user_permissions, permission_type, description: description, null: false, - method: :itself + method: :itself, + &block end end end |