Changing project manager should make sure that user is a project member.

This commit is contained in:
Todd Willey
2011-03-17 19:32:25 -04:00
parent 1eadd41c31
commit 313cfdd892
3 changed files with 11 additions and 0 deletions

View File

@@ -275,6 +275,8 @@ class LdapDriver(object):
attr.append((self.ldap.MOD_REPLACE, 'description', description))
dn = self.__project_to_dn(project_id)
self.conn.modify_s(dn, attr)
if not self.is_in_project(manager_uid, project_id):
self.add_to_project(manager_uid, project_id)
@sanitize
def add_to_project(self, uid, project_id):