public setAclRoles ( array $data = [] ) | ||
$data | array | ACL roles array which looks like array(teamId => array(accountRoleId1, accountRoleId2, ...)) |
public function setAclRoles(array $data = array())
{
if (empty($this->id)) {
throw new \Scalr\Acl\Exception\AclException("Object hasn't been initialized. Identifier of the user is expected.");
}
\Scalr::getContainer()->acl->setAllRolesForUser($this->id, $data, $this->getAccountId());
}