Why Bonita allows to start process by everyone?

1
0
-1

Hi,

I developed a very simple workflow which has 2 actors, I set one of these actors as initiator, every actor is mapped to a single user for simplicity.

But when I run the process from bonita studio. I can execute the first action with every user, I was expecting an error like 401 Denied, how can I fix this?

1 answer

1
+1
-1

Hi,

By default, the administrator profile is bound to the member role of the organization (which all users have). Removing the administrator profile should trigger a proper 403 error when the user does not belong to the initiator actor.

UPDATE: It looks like the runtime does not check if a user belongs to the initiator actor when start a process instance. The Bonita User Application only filters by initiators in the Process page. I personally don't like it and will report a bug in our internal tracker. Feel free to do the same here

HTH
Romain

Comments

Submitted by Frap on Mon, 11/15/2021 - 16:47

Hi Romain, thank you for your answer. How can I remove the administrator profile?

Thank you in advance

Submitted by Frap on Mon, 11/15/2021 - 16:47

Hi Romain, thank you for your answer. How can I remove the administrator profile?

Thank you in advance

Submitted by romain.bioteau on Mon, 11/15/2021 - 17:49

From the Bonita Administrator app (or Portal with Administrator profile), in the Organization > Profiles > Administrator menu.

Submitted by Frap on Mon, 11/15/2021 - 20:21

Thank you, very helpful

Submitted by Frap on Tue, 11/16/2021 - 11:28

Hi. I tried the solution suggested, removing the mapping of administrator profile from all users except one (in my case the mapping was for each user by default), but when I try to start a process from the button, it starts normally even if the user is not the iniator actor . Is there any other step to take in order to achieve the goal? I also verified that the user is not administrator, since I cannot see the administrator app from the app list.

Submitted by romain.bioteau on Wed, 11/17/2021 - 16:51

I've updated my answer

Notifications