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 (#1933)

# Bug
closes: [#1928](#1928) 

Fixed it so the logic allows you to delete your own bleets w/o admin
perms
  • Loading branch information
AshleyyRodriguez authored May 29, 2024
1 parent 25ffdb8 commit 6c41c76
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 6c41c76

Please sign in to comment.