Add site admin check in case of update.
MODIFY
src/server/rest/v1/service/UtilsService.ts
src/server/rest/v1/service/UtilsService.ts
@@ -214,7 +214,7 @@ export default class UtilsService {
UtilsService.assertIdIsProvided(action, siteID, MODULE_NAME, method, userToken);
// Get dynamic auth
const authorizationFilter = await AuthorizationService.checkAndGetSiteAuthorizationFilters(
- tenant, userToken, { ID: siteID });
+ tenant, userToken, { ID: siteID }, action);
if (!authorizationFilter.authorized) {
throw new AppAuthError({
errorCode: HTTPAuthError.FORBIDDEN,

Add site admin check in case of update.