ghostfolio / ghostfolio/ghostfolio

Use HasPermission in API controllers

Open
#2,706 9 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.