Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

implement author decorator as authorization strategy #99

Open
albjeremias opened this issue Jul 11, 2022 · 0 comments
Open

implement author decorator as authorization strategy #99

albjeremias opened this issue Jul 11, 2022 · 0 comments

Comments

@albjeremias
Copy link
Contributor

albjeremias commented Jul 11, 2022

  @Auth()
  @OnlyAuthor()
  // only author can run this!
  @Delete('delete/:feedButtonId')
  async remove(@Param('feedButtonId') feedButtonId: string) {
    return this.feedbuttonService.remove(feedButtonId);
  }

this would been that only the author, of a message, or the network owner or the server administrator could be allowed to delete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant