We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ab015 commit 5a05461Copy full SHA for 5a05461
src/shelter/shelter.controller.ts
@@ -16,7 +16,6 @@ import { ShelterService } from './shelter.service';
16
import { ServerResponse } from '../utils';
17
import { SearchQuery } from '../decorators';
18
import { SeachQueryProps } from '@/decorators/search-query/types';
19
-import { StaffGuard } from '@/guards/staff.guard';
20
import { UserGuard } from '@/guards/user.guard';
21
22
@ApiTags('Abrigos')
@@ -83,7 +82,7 @@ export class ShelterController {
83
82
}
84
85
@Put(':id/admin')
86
- @UseGuards(StaffGuard)
+ @UseGuards(UserGuard)
87
async fullUpdate(@Param('id') id: string, @Body() body) {
88
try {
89
const data = await this.shelterService.fullUpdate(id, body);
0 commit comments