Scalr\Acl\Acl::createNoAccessAccountRole PHP Method

createNoAccessAccountRole() public method

Creates No access account role
public createNoAccessAccountRole ( integer $accountId ) : Scalr\Acl\Role\AccountRoleObject
$accountId integer The identifier of the client's account
return Scalr\Acl\Role\AccountRoleObject Returns AccountRoleObject
    public function createNoAccessAccountRole($accountId)
    {
        $accountRoleId = self::generateAccountRoleId();
        //Marked with red colour
        $this->db->Execute("\n            INSERT `acl_account_roles` (account_role_id, account_id, role_id, name, color, is_automatic)\n            SELECT ?, ?, role_id, name, 14623232, 1\n            FROM `acl_roles`\n            WHERE `role_id` = ?\n        ", array($accountRoleId, $accountId, Acl::ROLE_ID_EVERYTHING_FORBIDDEN));
        return $this->getAccountRole($accountRoleId);
    }