|
|
|
@ -195,7 +195,9 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { |
|
|
|
|
|
|
|
// Narrow the permission to the scopes which the type permits, because
|
|
|
|
// an access which is not granted to a user never exposes the monetary
|
|
|
|
// values and a public access never changes data
|
|
|
|
// values and a public access never changes data. The type PRIVATE has
|
|
|
|
// no restricted write level, hence the permission to change the data
|
|
|
|
// exposes the monetary values
|
|
|
|
const accessLevelOfType = getAccessLevel( |
|
|
|
getScopesOfAccess({ |
|
|
|
scopes: getScopesOfAccessLevel(this.accessLevel), |
|
|
|
@ -207,7 +209,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { |
|
|
|
.get('accessLevel') |
|
|
|
?.setValue( |
|
|
|
accessType === 'PRIVATE' && |
|
|
|
accessLevelOfType === 'CREATE_READ_RESTRICTED_UPDATE_DELETE' |
|
|
|
this.accessLevel === 'CREATE_READ_RESTRICTED_UPDATE_DELETE' |
|
|
|
? 'CREATE_READ_UPDATE_DELETE' |
|
|
|
: accessLevelOfType |
|
|
|
); |
|
|
|
|