Commit 07bac26a authored by Nick Thomas's avatar Nick Thomas

Expose the admin_path_locks project permission in GraphQL

parent bf595234
......@@ -27,3 +27,5 @@ module Types
end
end
end
::Types::PermissionTypes::Project.prepend_mod_with('Types::PermissionTypes::Project')
# frozen_string_literal: true
module EE
module Types
module PermissionTypes
module Project
extend ActiveSupport::Concern
prepended do
ability_field :admin_path_locks
end
end
end
end
end
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Types::PermissionTypes::Project do
specify do
expected_permissions = [:admin_path_locks]
expected_permissions.each do |permission|
expect(described_class).to have_graphql_field(permission)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment