Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
07bac26a
Commit
07bac26a
authored
May 11, 2021
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose the admin_path_locks project permission in GraphQL
parent
bf595234
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
app/graphql/types/permission_types/project.rb
app/graphql/types/permission_types/project.rb
+2
-0
ee/app/graphql/ee/types/permission_types/project.rb
ee/app/graphql/ee/types/permission_types/project.rb
+15
-0
ee/spec/graphql/types/permission_types/project_spec.rb
ee/spec/graphql/types/permission_types/project_spec.rb
+13
-0
No files found.
app/graphql/types/permission_types/project.rb
View file @
07bac26a
...
...
@@ -27,3 +27,5 @@ module Types
end
end
end
::
Types
::
PermissionTypes
::
Project
.
prepend_mod_with
(
'Types::PermissionTypes::Project'
)
ee/app/graphql/ee/types/permission_types/project.rb
0 → 100644
View file @
07bac26a
# 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
ee/spec/graphql/types/permission_types/project_spec.rb
0 → 100644
View file @
07bac26a
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment