-
- if ($name == 'ROLE' && $this->canImport) {
- $this->roleMap[$this->currentElement['ID']] = ttRoleHelper::insert(array(
- 'team_id' => $this->team_id,
- 'name' => $this->currentElement['NAME'],
- 'rank' => $this->currentElement['RANK'],
- 'rights' => $this->currentElement['RIGHTS'],
- 'status' => $this->currentElement['STATUS']));
-
- // Update role_id for tt_users to a mapped value.
- // We did not do it during user insertion because roleMap was not ready then.
- // TODO: write setMappedRole function.
- /*
- if ($this->currentElement['ID'] != $this->roleMap[$this->currentElement['ID']])
- ttRoleHelper::setMappedRole($this->team_id, $this->currentElement['ID'], $this->roleMap[$this->currentElement['ID']]);
- */
- }