Skip to content

Commit a6469b6

Browse files
fagundesjgfilipepacheco
authored andcommitted
feat: created admin user role
1 parent 6db53d9 commit a6469b6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/guards/distribution-center.guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class DistributionCenterGuard extends AuthGuard('jwt') {
1313
async canActivate(context: ExecutionContext): Promise<boolean> {
1414
await super.canActivate(context);
1515
const ok = await canActivate(context, [
16-
AccessLevel.Staff,
16+
AccessLevel.Admin,
1717
AccessLevel.DistributionCenter,
1818
]);
1919
if (ok) return true;

src/shelter/ShelterSearch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ class ShelterSearch {
122122
}
123123

124124
get query(): Prisma.ShelterWhereInput {
125-
console.log(this.formProps);
126125
if (Object.keys(this.formProps).length === 0) return {};
127126
const queryData = {
128127
AND: [

0 commit comments

Comments
 (0)