Skip to content

Commit 5a05461

Browse files
gustavocsAlbuquerqueRafael
authored andcommitted
Change permission to Edit shelters to logged users
1 parent 83ab015 commit 5a05461

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/shelter/shelter.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { ShelterService } from './shelter.service';
1616
import { ServerResponse } from '../utils';
1717
import { SearchQuery } from '../decorators';
1818
import { SeachQueryProps } from '@/decorators/search-query/types';
19-
import { StaffGuard } from '@/guards/staff.guard';
2019
import { UserGuard } from '@/guards/user.guard';
2120

2221
@ApiTags('Abrigos')
@@ -83,7 +82,7 @@ export class ShelterController {
8382
}
8483

8584
@Put(':id/admin')
86-
@UseGuards(StaffGuard)
85+
@UseGuards(UserGuard)
8786
async fullUpdate(@Param('id') id: string, @Body() body) {
8887
try {
8988
const data = await this.shelterService.fullUpdate(id, body);

0 commit comments

Comments
 (0)