Class: ProtectedTag::CreateAccessLevel

Inherits:
ApplicationRecord show all
Includes:
ProtectedTagAccess
Defined in:
app/models/protected_tag/create_access_level.rb

Constant Summary

Constants included from ProtectedRefAccess

ProtectedRefAccess::HUMAN_ACCESS_LEVELS

Instance Method Summary collapse

Methods included from ProtectedRefAccess

#humanize, #role?

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#check_access(user) ⇒ Object


6
7
8
9
10
# File 'app/models/protected_tag/create_access_level.rb', line 6

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

  super
end