Add checks to prevent creation/access to personal snippets when the new option is disabled
Problem
We want to prevent enterprise users from creating/accessing personal snippets when Allow personal snippets option is disabled.
The configuration for Allow personal snippets is stored in the database (see Add allow_personal_snippets field to group sett... (#555051 - closed)).
Proposal
- Update policies and UI pieces to prevent users from accessing or creating snippets based on this configuration value.
- This functionality should be released behind the same feature flag as in Add a UI configuration option to the group sett... (#552392 - closed).
Additional Notes
The ability to toggle this setting should only be available to group owners and should only impact enterprise users in the namespace.
When this setting is enabled, Enterprise Users that are part of the namespace would be allowed to create snippets in their personal namespace.
When this setting is disabled, Enterprise Users that are part of the namespace would NOT be allowed to create snippets in their personal namespace.
Similar implementation
Disable personal access tokens for enterprise u... (!148415 - merged)