OSDN Git Service

Merge branch 'add-defaults-create-group-team' of https://github.com/dmedvinsky/gitlab...
[wvm/gitlab.git] / app / models / user.rb
index 17da856..c6dd086 100644 (file)
@@ -348,4 +348,8 @@ class User < ActiveRecord::Base
       nil
     end
   end
+
+  def ldap_user?
+    extern_uid && provider == 'ldap'
+  end
 end