# Restrict "Validate" Button to Supervisors Only in Dolibarr

**URL:** <https://www.dolibarr.org/forum/t/restrict-validate-button-to-supervisors-only-in-dolibarr/30339>\
**Category:** Developing for Dolibarr\
**Tags:** Windows, Help\
**Created:** [May 13, 2025, 2:35pm UTC](https://www.dolibarr.org/forum/t/restrict-validate-button-to-supervisors-only-in-dolibarr/30339 "2025-05-13T14:35:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yassine](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/y/c89c15/32.png) [@Yassine](https://www.dolibarr.org/forum/u/Yassine)\
**Post date:** [May 13, 2025, 2:35pm UTC](https://www.dolibarr.org/forum/t/restrict-validate-button-to-supervisors-only-in-dolibarr/30339/1 "2025-05-13T14:35:00Z")

</div>

\*\* Hello everyone,\*\*

I’m using **Dolibarr** to manage customer orders.  
Here’s my issue:  
When a **salesperson (commercial)** creates an order, I want the **“Validate” button to be hidden for them** , and only **the supervisor** who needs to approve it should see the button.

👉 The problem is that I can’t find any **user or group permission** that disables just the “validate” action.

🔧 Is there a way to hide the “Validate” button based on the user’s role (e.g., salesperson vs supervisor)? Maybe through a **code condition** , **addon module** , or an **existing feature** that I missed?

Thanks in advance for your help 🙏

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [May 13, 2025, 3:50pm UTC](https://www.dolibarr.org/forum/t/restrict-validate-button-to-supervisors-only-in-dolibarr/30339/2 "2025-05-13T15:50:49Z")

</div>

I think you need some coding.

Vendor orders needs to be approved - perhaps that same code can be modified to support your workflow?

---

<div class="post-metadata">

**Author:** ![priojk](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/priojk/32/6121_2.png) [@priojk](https://www.dolibarr.org/forum/u/priojk)\
**Post date:** [May 13, 2025, 4:40pm UTC](https://www.dolibarr.org/forum/t/restrict-validate-button-to-supervisors-only-in-dolibarr/30339/3 "2025-05-13T16:40:18Z")

</div>

@Yassine the functionality you need is already included in Dolibarr:

Under home \> setup \> security you just need to switch on “Use the advanced permissions of some modules”.

You then have fine grained options for user permissions. So the permission to create an order can be different from the right to validate an order.
