Module: ProtectedBranchAccess

Extended by:
ActiveSupport::Concern
Includes:
ProtectedRefAccess
Included in:
ProtectedBranch::MergeAccessLevel, ProtectedBranch::PushAccessLevel
Defined in:
app/models/concerns/protected_branch_access.rb

Constant Summary

Constants included from ProtectedRefAccess

ProtectedRefAccess::HUMAN_ACCESS_LEVELS

Instance Method Summary collapse

Methods included from ProtectedRefAccess

#humanize, #role?, #type

Instance Method Details

#check_access(user) ⇒ Object


13
14
15
16
17
# File 'app/models/concerns/protected_branch_access.rb', line 13

def check_access(user)
  return false if access_level == Gitlab::Access::NO_ACCESS

  super
end