Skip to content

Commit 4026fac

Browse files
committed
School Config
Fixes #52
1 parent 15e9693 commit 4026fac

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

modules/services/api/src/auth/utils/user-permissions.util.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ export class AuthenticatedUserPermissions {
6565
const resourceScopes = Array.isArray(scope) ? scope : [scope];
6666
const userScopes = this.getScopes(permissions);
6767

68-
console.log('userScopes', userScopes);
69-
console.log('resourceScopes', resourceScopes);
70-
7168
if (userScopes.length === 0) {
7269
return false;
7370
}

modules/services/api/src/edu/controllers/schools/specs/schools.controller.test.get.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ describe('SchoolsController', () => {
7272
await ctx.authenticate(ctx.misc.users.adminOfOneAndTwo),
7373
);
7474
expect(res.items).toHaveLength(2);
75-
expect(res.items).toEqual([ctx.one.school, ctx.two.school]);
75+
expect(res.items.map((x) => x.id)).toEqual(
76+
[ctx.one.school, ctx.two.school].map((x) => x.id),
77+
);
7678
});
7779
});
7880
});

0 commit comments

Comments
 (0)