Ensure data is complete

parent bb93dfb2
...@@ -2,6 +2,7 @@ class LdapGroupLink < ActiveRecord::Base ...@@ -2,6 +2,7 @@ class LdapGroupLink < ActiveRecord::Base
include Gitlab::Access include Gitlab::Access
belongs_to :group belongs_to :group
validates :cn, :group_access, :group_id, presence: true
validates :cn, uniqueness: { scope: :group_id } validates :cn, uniqueness: { scope: :group_id }
def access_field def access_field
......
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