-
- Downloads
Enforce "No One Can Push" during git operations.
1. The crux of this change is in `UserAccess`, which looks through all the access levels, asking each if the user has access to push/merge for the current project. 2. Update the `protected_branches` factory to create access levels as necessary. 3. Fix and augment `user_access` and `git_access` specs.
Showing
- app/models/protected_branch/merge_access_level.rb 9 additions, 0 deletionsapp/models/protected_branch/merge_access_level.rb
- app/models/protected_branch/push_access_level.rb 11 additions, 0 deletionsapp/models/protected_branch/push_access_level.rb
- lib/gitlab/user_access.rb 6 additions, 4 deletionslib/gitlab/user_access.rb
- spec/factories/protected_branches.rb 17 additions, 0 deletionsspec/factories/protected_branches.rb
- spec/lib/gitlab/git_access_spec.rb 44 additions, 34 deletionsspec/lib/gitlab/git_access_spec.rb
- spec/lib/gitlab/user_access_spec.rb 2 additions, 2 deletionsspec/lib/gitlab/user_access_spec.rb
Loading
Please register or sign in to comment