[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/include/system LDAP.class,1.1,1.2
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/common/include/system LDAP.class,1.1,1.2 |
Date: |
Mon, 26 Jul 2004 17:58:42 -0500 |
Update of /cvsroot/gforge/gforge/common/include/system
In directory db.perdue.net:/tmp/cvs-serv30042/common/include/system
Modified Files:
LDAP.class
Log Message:
Closes [ #838 ] Add user in its first project fails if user already in ldap
Suggested by Matthieu Leclercq
Index: LDAP.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/include/system/LDAP.class,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- LDAP.class 9 May 2004 18:15:37 -0000 1.1
+++ LDAP.class 26 Jul 2004 22:58:39 -0000 1.2
@@ -278,8 +278,13 @@
*
*/
function sys_create_user($user_id) {
- $user = &user_get_object($user_id);
- return $this->gf_ldap_create_user_from_object($user);
+ // Check even if the user shouldn't exist
+ // It can be created by a cron
+ if (!$this->sys_check_user($user_id)){
+ $user = &user_get_object($user_id);
+ return $this->gf_ldap_create_user_from_object($user);
+ }
+ return true;
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/include/system LDAP.class,1.1,1.2,
cbayle <=
- Prev by Date:
[Gforge-commits] gforge ChangeLog,1.391,1.392
- Next by Date:
[Gforge-commits] gforge/www/themes/osx/images/ic mail16w.png, NONE, 1.1 write16w.png, NONE, 1.1 xmail16w.png, NONE, 1.1
- Previous by thread:
[Gforge-commits] gforge ChangeLog,1.391,1.392
- Next by thread:
[Gforge-commits] gforge/www/themes/osx/images/ic mail16w.png, NONE, 1.1 write16w.png, NONE, 1.1 xmail16w.png, NONE, 1.1
- Index(es):