@@ -2023,12 +2023,12 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
20232023 }
20242024 tl (6 , i18nGlobale .getString (I18n .var_requeteSite ), ".setScopes(scopes.stream().map(o -> o.toString()).collect(Collectors.toList()));" );
20252025 tl (6 , "List<String> scopes2 = " , i18nGlobale .getString (I18n .var_requeteSite ), ".getScopes();" );
2026- if (classeRoleSession || classeRoleUtilisateur || classeRoleChacun ) {
2027- tl (6 , "if(!scopes2.contains(\" POST\" ))" );
2028- tl (7 , "scopes2.add(\" POST\" );" );
2029- tl (6 , "if(!scopes2.contains(\" PATCH\" ))" );
2030- tl (7 , "scopes2.add(\" PATCH\" );" );
2031- }
2026+ // if(classeRoleSession || classeRoleUtilisateur || classeRoleChacun) {
2027+ // tl(6, "if(!scopes2.contains(\"POST\"))");
2028+ // tl(7, "scopes2.add(\"POST\");");
2029+ // tl(6, "if(!scopes2.contains(\"PATCH\"))");
2030+ // tl(7, "scopes2.add(\"PATCH\");");
2031+ // }
20322032 } else {
20332033 tl (3 , "authorizationProvider.getAuthorizations(" , i18nGlobale .getString (I18n .var_requeteSite ), ".get" , i18nGlobale .getString (I18n .var_Utilisateur ), "()).onFailure(ex -> {" );
20342034 tl (4 , "String msg = String.format(\" 403 FORBIDDEN user %s to %s %s\" , siteRequest.getUser().attributes().getJsonObject(\" accessToken\" ).getString(\" preferred_username\" ), serviceRequest.getExtra().getString(\" method\" ), serviceRequest.getExtra().getString(\" uri\" ));" );
@@ -2237,12 +2237,12 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
22372237 }
22382238 tl (6 , i18nGlobale .getString (I18n .var_requeteSite ), ".setScopes(scopes.stream().map(o -> o.toString()).collect(Collectors.toList()));" );
22392239 tl (6 , "List<String> scopes2 = " , i18nGlobale .getString (I18n .var_requeteSite ), ".getScopes();" );
2240- if (classeRoleSession || classeRoleUtilisateur || classeRoleChacun ) {
2241- tl (6 , "if(!scopes2.contains(\" POST\" ))" );
2242- tl (7 , "scopes2.add(\" POST\" );" );
2243- tl (6 , "if(!scopes2.contains(\" PATCH\" ))" );
2244- tl (7 , "scopes2.add(\" PATCH\" );" );
2245- }
2240+ // if(classeRoleSession || classeRoleUtilisateur || classeRoleChacun) {
2241+ // tl(6, "if(!scopes2.contains(\"POST\"))");
2242+ // tl(7, "scopes2.add(\"POST\");");
2243+ // tl(6, "if(!scopes2.contains(\"PATCH\"))");
2244+ // tl(7, "scopes2.add(\"PATCH\");");
2245+ // }
22462246 } else {
22472247 tl (3 , "authorizationProvider.getAuthorizations(" , i18nGlobale .getString (I18n .var_requeteSite ), ".get" , i18nGlobale .getString (I18n .var_Utilisateur ), "()).onFailure(ex -> {" );
22482248 tl (4 , "String msg = String.format(\" 403 FORBIDDEN user %s to %s %s\" , siteRequest.getUser().attributes().getJsonObject(\" accessToken\" ).getString(\" preferred_username\" ), serviceRequest.getExtra().getString(\" method\" ), serviceRequest.getExtra().getString(\" uri\" ));" );
0 commit comments