Skip to main content

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.