• Timothy Andrew's avatar
    Backend implementation to allow a group to be granted access to a protected branch. · 7714c114
    Timothy Andrew authored
    1. A protected branch access level `belongs_to` a group in addition to a
       user. When access for a user is checked, see if the user is present
       in the access level's group, if any.
    
    2. If a group is added to a project with `:reporter` access or lower,
       adding a group to a proteted branch does _not_ grant access, since
       the `push_code` ability is still checked. This is tested with a few
       hundred new tests in `git_access_spec`.
    7714c114
push_access_level.rb 1.03 KB