Add Gitlab::Access properties to LdapGroupLink

parent bf65eb1d
class LdapGroupLink < ActiveRecord::Base class LdapGroupLink < ActiveRecord::Base
include Gitlab::Access
belongs_to :group belongs_to :group
validates :cn, uniqueness: { scope: :group_id } validates :cn, uniqueness: { scope: :group_id }
def access_field
group_access
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment