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.)
- MSAnswered
Hello,
I have checked. The warning is set but it’s not being displayed. You can edit header view file
themes/default/views/header.php
and 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
- SSAnswered
Still not displaying. If I manually set $warning, then it will display the warning message. So it would seem $warning isn’t being set.
- SSAnswered
I just checked and the reference to $warning only exists in the code you just gave me. Maybe it’s a different variable?
- MSAnswered
Hello,
Please edit
view_rights
ofapp/libraries/Sim.php
and 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
- SSAnswered
That solved it. Thank you!
- Login to Reply