#1030 - Best Method to Make a Record Read Only Based Upon a Dropdown Field Value Editable by Role?
I've scoured many forums and founds a few ways to code this, but was wondering if using SecuritySuite would be easier.
Here is the problem.
I'm using AOS Invoices. When the invoice is completed by the field employee, it is then ready to be reviewed by the office administrator before being exported into QuickBooks. Once that invoice is exported, we obviously don't want users to be able to edit it, hence the "read only state."
I envision a dropdown menu that only a user-role like "Admin" would have the privilege to edit. At which time they could place that invoice in an "archived" status, making the record "read only." Should there need to be a correction to that invoice after the fact, those with Admin rights could still edit the invoice record.
What would be the best way to accomplish this?
10 years ago
The best way to implement this is via a custom check in the view.edit.php. Redirect to the detail view if it should be read only depending on the current user. SecuritySuite doesn't do anything around this need. Sorry!
10 years ago
Thanks Jason... I appreciate the quick response!