app/models/egov_utils/group.rb in egov_utils-0.1.15 vs app/models/egov_utils/group.rb in egov_utils-0.1.16
- old
+ new
@@ -20,7 +20,11 @@
def ldap_member?(user)
ldap_members.detect{|mem| mem[:login] == user.login }
end
+ def external_uid
+ super || auth_source.send(:get_group_dn, sid: ldap_uid)
+ end
+
end
end