When a user attempts to edit an invoice that they did not create, they are simply looped back to the list invoices page.
Could you modify this so an alert message is displayed explaining that users can only edit invoices input by them (except for admin, of course.)
- MSAnsweredHello, I have checked. The warning is set but it’s not being displayed. You can edit header view file themes/default/views/header.phpand add the following line at the end of it<?php if ($warning) { echo "<div class=\"alert alert-warning\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>" . $warning . "</div>"; } ?>Thank you 
- SSAnsweredStill not displaying. If I manually set $warning, then it will display the warning message. So it would seem $warning isn’t being set. 
- SSAnsweredI just checked and the reference to $warning only exists in the code you just gave me. Maybe it’s a different variable? 
- MSAnsweredHello, Please edit view_rightsofapp/libraries/Sim.phpand change the line 250$this->session->set_flashdata('warning', $this->data['access_denied']);to the following$this->session->set_flashdata('warning', lang('access_denied'));This will fix the issue. Thank you 
- SSAnsweredThat solved it. Thank you! 
- Login to Reply