• Toon Claes's avatar
    Add User#full_private_access? to check if user has Private access · b90f1098
    Toon Claes authored
    In CE only the admin has access to all private groups & projects. In EE also an
    auditor can have full private access.
    
    To overcome merge conflicts, or accidental incorrect access rights, abstract
    this out in `User#full_private_access?`.
    
    `User#admin?` now only should be used for admin-only features. For private
    access-related features `User#full_private_access?` should be used.
    
    Backported from gitlab-org/gitlab-ee!2199
    b90f1098
user_spec.rb 59.8 KB