Skip to content

Commit

Permalink
šŸ› ļø | Changed permissions for users to be able to delete their own bleā€¦
Browse files Browse the repository at this point in the history
ā€¦ets w/o administrator permissions
  • Loading branch information
AshleyyRodriguez authored May 29, 2024
1 parent 25ffdb8 commit 6ee4182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/controllers/bleeter/bleeter-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class BleeterController {
throw new NotFound("notFound");
}

if (post.userId !== user.id || !hasAdminPermissions) {
if (post.userId !== user.id && !hasAdminPermissions) {
throw new Forbidden("notAllowedToDelete");
}

Expand Down

0 comments on commit 6ee4182

Please sign in to comment.