1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00

fix: remove debug logging

This commit is contained in:
Ivar Conradi Østhus 2022-01-11 11:22:24 +01:00
parent 6d6686a2a8
commit ee0e728e67
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -132,16 +132,15 @@ export class AccessStore implements IAccessStore {
// we map the project to the project and environment specific
// permissions that are connected to the editor role.
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;
} else if (row.type !== ROOT_PERMISSION_TYPE) {
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 =
row.type === ENVIRONMENT_PERMISSION_TYPE
? row.environment