Skip to content

Commit

Permalink
fix: remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Jan 11, 2022
1 parent 6d6686a commit ee0e728
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib/db/access-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee0e728

Please sign in to comment.