Remove settings auth from basic & demo users. Remove unused import.
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -212,8 +212,6 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
]
}
},
- { resource: Entity.SETTINGS, action: Action.LIST, attributes: ['*'] },
- { resource: Entity.SETTING, action: Action.READ, attributes: ['*'] },
{ resource: Entity.CONNECTIONS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.CONNECTION, action: [Action.CREATE], attributes: ['*'] },
{
@@ -262,11 +260,6 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
]
}
},
- { resource: Entity.SETTINGS, action: Action.LIST, attributes: ['*'] },
- {
- resource: Entity.SETTING, action: Action.READ, attributes: ['*'],
- condition: { Fn: 'EQUALS', args: { 'identifier': TenantComponents.ANALYTICS } }
- },
]
},
siteAdmin: {

MODIFY
src/server/rest/v1/service/SettingService.ts
src/server/rest/v1/service/SettingService.ts
@@ -8,7 +8,6 @@ import Authorizations from '../../../../authorization/Authorizations';
import Constants from '../../../../utils/Constants';
import Cypher from '../../../../utils/Cypher';
import Logging from '../../../../utils/Logging';
-import OICPUtils from '../../../oicp/OICPUtils';
import { ServerAction } from '../../../../types/Server';
import SettingSecurity from './security/SettingSecurity';
import SettingStorage from '../../../../storage/mongodb/SettingStorage';

Remove settings auth from basic & demo users. Remove unused import.