ghostfolio / ghostfolio/ghostfolio
Use HasPermission in API controllers
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 9.3k
- Forks
- 1.3k
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 172
Description
With the groundwork of #2693 it is now possible to guard endpoints with the following code:
```
@UseGuards(HasPermissionGuard) // can be on the controller or handler
@HasPermission('somePermissionKey') // on the handler
```
_See comment by @underwater in https://github.com/ghostfolio/ghostfolio/issues/2693#issuecomment-1833383105_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.