Commit bbb848af authored by charlie ablett's avatar charlie ablett

Add Group ProjectNamespace Shared Policy

parent 663ee9e8
# frozen_string_literal: true # frozen_string_literal: true
class GroupPolicy < NamespacePolicy class GroupPolicy < Namespaces::GroupProjectNamespaceSharedPolicy
include FindGroupProjects include FindGroupProjects
desc "Group is public" desc "Group is public"
......
# 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
# frozen_string_literal: true # frozen_string_literal: true
module Namespaces module Namespaces
class ProjectNamespacePolicy < NamespacePolicy class ProjectNamespacePolicy < Namespaces::GroupProjectNamespaceSharedPolicy
# For now users are not granted any permissions on project namespace # For now users are not granted any permissions on project namespace
# as it's completely hidden to them. When we start using project # as it's completely hidden to them. When we start using project
# namespaces in queries, we will have to extend this policy. # namespaces in queries, we will have to extend this policy.
......
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