From 1a225bf55ba439b4198e0a32f020dde4cdb4e618 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Thu, 7 Jul 2022 17:57:24 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05102=20-=20Allow=20to=20send=20emails=20?= =?UTF-8?q?using=20GSuite=20SMTP=20and=20OAuth=20-=20Access=20rights?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-oauth-client/ajax.php | 3 +-- .../2.x/itop-oauth-client/datamodel.itop-oauth-client.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/datamodels/2.x/itop-oauth-client/ajax.php b/datamodels/2.x/itop-oauth-client/ajax.php index 1b81b0829..4fbbbf477 100644 --- a/datamodels/2.x/itop-oauth-client/ajax.php +++ b/datamodels/2.x/itop-oauth-client/ajax.php @@ -17,8 +17,7 @@ if (version_compare(ITOP_DESIGN_LATEST_VERSION , '3.0') >= 0) { } $oUpdateController = new AjaxOauthClientController($sTemplates, 'itop-oauth-client'); -$oUpdateController->AllowOnlyAdmin(); -$oUpdateController->SetDefaultOperation('CreateMailbox'); +$oUpdateController->SetMenuId('OAuthClient'); $oUpdateController->HandleOperation(); diff --git a/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml b/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml index c1ed17ac4..c39eb2f1d 100644 --- a/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml +++ b/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml @@ -874,7 +874,7 @@ 1 0 OAuthClient - UR_ACTION_READ + UR_ACTION_MODIFY