Prevent projects creating group links outside hierarchy
What does this MR do and why?
- adds observation of the
root_ancestor.namespace_settings.prevent_sharing_groups_outside_hierarchy
value for determining if a group can be invited(shared) with a project at service/API layer.- this already existed at the group layer, but not at the project layer.
- refines the interfaces of the
GroupLinks
creation service so that they look and feel the same between projects and groups - encapsulates the shared code/concepts into a concern for projects and groups link creation services
- attempts to reduce the confusion on what a
shared_group
and ashared_with_group
is by utilizinggroup
instead ofshared_group
.
Related to #353148
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Doug Stull