mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: remove debug logging
This commit is contained in:
parent
6d6686a2a8
commit
ee0e728e67
@ -132,16 +132,15 @@ export class AccessStore implements IAccessStore {
|
|||||||
// we map the project to the project and environment specific
|
// we map the project to the project and environment specific
|
||||||
// permissions that are connected to the editor role.
|
// permissions that are connected to the editor role.
|
||||||
console.log('before', row);
|
console.log('before', row);
|
||||||
if (row.role_id === EDITOR_ROLE_ID && row.type !== ROOT_PERMISSION_TYPE) {
|
if (
|
||||||
|
row.role_id === EDITOR_ROLE_ID &&
|
||||||
|
row.type !== ROOT_PERMISSION_TYPE
|
||||||
|
) {
|
||||||
project = DEFAULT_PROJECT;
|
project = DEFAULT_PROJECT;
|
||||||
} else if (row.type !== ROOT_PERMISSION_TYPE) {
|
} else if (row.type !== ROOT_PERMISSION_TYPE) {
|
||||||
project = row.project ? row.project : undefined;
|
project = row.project ? row.project : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('row.role_id === EDITOR_ID', row.role_id === EDITOR_ROLE_ID);
|
|
||||||
console.log('row.type !== ROOT_PERMISSION_TYPE', row.type !== ROOT_PERMISSION_TYPE);
|
|
||||||
console.log('DEFAULT_PROJECT', DEFAULT_PROJECT);
|
|
||||||
|
|
||||||
const environment =
|
const environment =
|
||||||
row.type === ENVIRONMENT_PERMISSION_TYPE
|
row.type === ENVIRONMENT_PERMISSION_TYPE
|
||||||
? row.environment
|
? row.environment
|
||||||
|
Loading…
Reference in New Issue
Block a user