| 1 | import { Navbar } from "@point_of_sale/app/components/navbar/navbar"; |
| 2 | import { patch } from "@web/core/utils/patch"; |
| 3 | |
| 4 | patch(Navbar.prototype, { |
| 5 | get showEditPlanButton() { |
| 6 | if ( |
| 7 | this.pos.config.module_pos_restaurant && |
| 8 | (!this.pos.config.module_pos_hr || this.pos.employeeIsAdmin) |
| 9 | ) { |
| 10 | return super.showEditPlanButton; |
| 11 | } else { |
| 12 | return false; |
| 13 | } |
| 14 | }, |
| 15 | }); |