Skip to content

Commit 85875f4

Browse files
committed
fix: added staff permission to create users
1 parent fca1031 commit 85875f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Backend
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [deploy]
66

77
jobs:
88
build:

src/users/users.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class UsersController {
2424
constructor(private readonly userServices: UsersService) {}
2525

2626
@Post('')
27+
@UseGuards(StaffGuard)
2728
async store(@Body() body) {
2829
try {
2930
await this.userServices.store(body);

0 commit comments

Comments
 (0)