Commit 5478a819 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '346776-cablett-group-policy-subclass-namespace' into 'master'

Incorporate GroupPolicy into updated namespace policy structure

See merge request gitlab-org/gitlab!76307
parents 0e7c29d5 bbb848af
# frozen_string_literal: true # frozen_string_literal: true
class GroupPolicy < BasePolicy 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