Managing Permission Levels in VinAR-ERP
Permission Levels (Perm Level) help control what fields in a document different users can see or edit. Instead of setting permissions for an entire document, Perm Levels allow you to restrict access to specific sections or fields within a document.
π What is a Perm Level?
πΉ Every document in VinAR-ERPΒ has multiple fields (e.g., Customer Name, Amount, Date, etc.).
πΉ Each field can be assigned a Permission Level (e.g., 0, 1, 2, 3, etc.).
πΉ You can set different permission rules for each level, so only certain users can access or edit specific fields.
π By default, all fields have Perm Level 0, meaning they follow the documentβs general permission rules.
βοΈ How Does Perm Level Work?
βοΈ Example: Restricting Amount Field in a Delivery Note
Imagine that both Stock Managers and Stock Users can access a Delivery Note, but you want to hide the "Amount" field from Stock Users.
Here's how you can do it:
1οΈβ£ Set the Perm Level for the Amount field to 2.
2οΈβ£ Grant Stock Managers permission to access Perm Level 2 fields.
3οΈβ£ Do not grant Stock Users access to Perm Level 2 fields.
Now, Stock Managers can see the Amount field, but Stock Users cannot.
π οΈ Customizing Field Permissions with Perm Level
1οΈβ£ Setting Perm Level in Customize Form
To assign a Perm Level to a field:
πΉ Go to Customize Form
πΉ Select the field you want to restrict
πΉ Set its Perm Level (e.g., 1, 2, 3, etc.)
2οΈβ£ Adjusting Access for Different Roles
Once a field has a Perm Level, you need to grant specific roles permission to access that level:
βοΈ If a role has Read & Write permission for Perm Level 2, they can see and edit the field.
βοΈ If a role has Read-Only permission for Perm Level 2, they can only view the field.
βοΈ If a role has no permissions for Perm Level 2, they wonβt see the field at all.
π Example: A Stock User might be able to see an Amount field but not edit it, while a Stock Manager can do both.
π Grouping Fields with Perm Level
βοΈ No Hierarchy Needed:
- Perm Levels (1, 2, 3, etc.) do not need to be in order.
- You can assign any number to a field and then grant permissions accordingly.
βοΈ Setting Permissions for a Section:
- If you want to restrict an entire section, just set the Perm Level for the section field, and it will automatically apply to all fields inside that section.
π Key Takeaways
β
Perm Level controls access to specific fields inside a document.
β
You can group fields together using a Perm Level and assign permissions accordingly.
β
Different users can have different levels of access (e.g., view-only vs. edit).
β
Changing a sectionβs Perm Level affects all fields inside that section.
By using Permission Levels, you can fine-tune access to sensitive information in VinAR-ERP, ensuring that users only see whatβs relevant to them.