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
bbb848af
Commit
bbb848af
authored
Dec 08, 2021
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Group ProjectNamespace Shared Policy
parent
663ee9e8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
app/policies/group_policy.rb
app/policies/group_policy.rb
+1
-1
app/policies/namespaces/group_project_namespace_shared_policy.rb
...icies/namespaces/group_project_namespace_shared_policy.rb
+9
-0
app/policies/namespaces/project_namespace_policy.rb
app/policies/namespaces/project_namespace_policy.rb
+1
-1
No files found.
app/policies/group_policy.rb
View file @
bbb848af
# frozen_string_literal: true
class
GroupPolicy
<
NamespacePolicy
class
GroupPolicy
<
Namespace
s
::
GroupProjectNamespaceShared
Policy
include
FindGroupProjects
desc
"Group is public"
...
...
app/policies/namespaces/group_project_namespace_shared_policy.rb
0 → 100644
View file @
bbb848af
# frozen_string_literal: true
module
Namespaces
class
GroupProjectNamespaceSharedPolicy
<
::
NamespacePolicy
# Nothing here at the moment, but as we move policies from ProjectPolicy to ProjectNamespacePolicy,
# anything common with GroupPolicy but not with UserNamespacePolicy can go in here.
# See https://gitlab.com/groups/gitlab-org/-/epics/6689
end
end
app/policies/namespaces/project_namespace_policy.rb
View file @
bbb848af
# frozen_string_literal: true
module
Namespaces
class
ProjectNamespacePolicy
<
NamespacePolicy
class
ProjectNamespacePolicy
<
Namespace
s
::
GroupProjectNamespaceShared
Policy
# For now users are not granted any permissions on project namespace
# as it's completely hidden to them. When we start using project
# namespaces in queries, we will have to extend this policy.
...
...
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