tastyigniter / TastyIgniter

:fire: Powerful, yet easy to use, open-source online ordering, table reservation and management system for restaurants
https://tastyigniter.com
MIT License
2.98k stars 976 forks source link

[Bug]: Delete button doesn't check permissions #986

Closed xcodeluis closed 2 years ago

xcodeluis commented 2 years ago

What happened?

It was configured a staff to not have permission to delete orders and works when this staff try to delete an order inside (editing), but when its outside and flag the order, apear a button to delete, this button doesn’t check permissions.

https://user-images.githubusercontent.com/58752056/172099707-852e2bb6-c108-429a-8e39-8da1ee607bbe.mov

What did you expect to happen?

It was expected not to be allowed to delete an order without permission.

Version

3.5.x

What browser are you seeing the problem on?

Chrome, Safari

Relevant log output

No response

sampoyigi commented 2 years ago

Fixed