SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
137 stars 83 forks source link

🛠️ | Changed permissions for users to be able to delete their own bleets w/o administrator permissions #1932

Closed AshleyyRodriguez closed 1 month ago

AshleyyRodriguez commented 1 month ago

Changed the logic for post deletion to allow users to delete their own bleets w/o administrator permissions. This was caused by the logic checking if the user was the owner or if they had administrator permissions and triggered the error if either they weren't the owner or didn't have admin permissions. In this case if the user didn't have admin permissions it would trigger the error no matter if they were the owner.

Bug

closes: #1928