Have you looked at the "restricted_visibility_levels" setting in gitlab.yml ( https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L62)? I believe this will do what you want. You can set it like:
restricted_visibility_levels: [ "public" ] Which will restrict non-admin users setting a project to public. If you set it to [ "public", "internal" ], the only option to standard users is "private". Use that and the projects default "visibility_level" ( https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L77 ). Admin users will still be able to make projects public if desired. This is all assuming you are running GitLab 6.4+. On Monday, November 4, 2013 8:54:45 AM UTC-6, Daniel Hoffend wrote: > > Hello Gitlab Community > > is it possible to completely disable public projects on a gitlab instance? > This would be just a workaround > d until users permissions can be set more detailed. > > The problem: > > - I can create users and give them access to a private project. But as > long as the members have still free repos available they can fork the > private repo (which would be okay and good) and make it public again > (which > would be the downside of having a private gitlab). > > The best solution would be > > - Only real admins can change repos (group or private repos) to public > mode > - or make it a user permission to turn private repos into public repos. > > Best Regards > Daniel > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
