Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !26598

Closed
Created Mar 26, 2019 by Martin Wortschack@wortschi🐻Developer2 of 11 tasks completed2/11 tasks
  • Report abuse
Report abuse

WIP: Resolve "[FE] Restrict private project forks, either completely or to private forks only"

  • Overview 34
  • Commits 16
  • Pipelines 56
  • Changes 27

What does this MR do?

Adds a new section Forks for private projects under Repository in Project Settings -> General -> Permissions:

  • Dropdown options:
    • 'Allow public forks'
    • 'Only allow private forks'

Switching the toggle off will disallow all forks. Switching the toggle on will give users the option between allowing all forks, or only private ones.

project_settings_forks

How to test

Enable the following feature flags in the Rails console (rails c):

  • Feature.enable(:show_forking_access_level)

Then select a private project -> Project Settings -> General -> Visibility, project features, permissions:

EE port: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10663

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/59030

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Documentation created/updated via this MR
  • Documentation reviewed by technical writer or follow-up review issue created
  • Tests added for this feature/bug
  • Tested in all supported browsers
  • Conforms to the code review guidelines
  • Conforms to the merge request performance guidelines
  • Conforms to the style guides
  • Conforms to the database guides
  • Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.
  • Security reports checked/validated by reviewer

Closes #59030 (closed)

Edited Apr 09, 2019 by Martin Wortschack
Assignee
Assign to
Reviewer
Request review from
12.3
Milestone
12.3 (Past due)
Assign milestone
Time tracking
Source branch: 59030-fe-restrict-private-project-forks-either-completely-or-to-private-forks-only