Question

Block access to the "delete" button of a record in a section, depending on his state.

Hello,

I want to block access by all users in a role, to the "delete" button of a record in the Invoice section, depending on the value of his attribute "status".

Please, help me.

Like 0

Like

6 comments

Hello,

You can achieve your goal in a bit different way by creating a business process that will remove access rights for some user group when the Invoice has some particular status. Please read more detailed info about Change access rights element here: https://academy.bpmonline.com/documents/technic-bpms/7-12/change-access-rights-process-element

Your process can be launched by a signal when the Invoice gets its status modified to some particular value. 

In this scenario the button won't be hidden but the users won't be able to delete a record.

Best regards,

Lily

Hello,

thank you for your answer.

I tried your solution but it does not work. In fact, the business process complet well but the access right does not change. These are pictures of my business process :

Thank you.

ladydia,

Please note that to make this element work properly, you need to have 'Managed by records' turned on for the 'Order' object.

https://academy.bpmonline.com/documents/studio/7-12/default-permissions-detail-object-permissions-section

In case you have no such option turned on before, you will nee to set up the default rights for all employees and the access rights to the existing records will be lost. You will need also to redistribute the rights to the existing records. 

Best regards,

Lily

Hello,

Thank you for your answer.

I already have "Managed by records" turned on for the "Order" object.

Here is the default permissions (same for "read", "edit" and "delete"):

Thank you.

 

ladydia,

Please try to create a process with Change access rights element in Order section for one record to check if it actually works in your system. If not, please contact support@bpmonline.com for further investigation.

Best regards,

Lily

Hello,

Thank you for your answer.

I tried to create a process with Change access rights element in Order section for one record to check, and it doesn't work. I conclude my system has a problem so I will contact the support team.

Thank you.

Show all comments