I have recently created a panel which uses Recipes. Everything worked for me, but after deploying it in our development system, I found that another user was not able to activate a recipe (internally, the function rcp_activateRecipe is called). After investigation, it seems that the error code -4 is returned, meaning 'Permission NOK'. I have searched around, but cannot find any information regarding which authorisation bit(s) are needed to be able to activate a recipe. Does anyone have any idea what is required for this?
Many thanks in advance for any help.
Cheers,
Jim
Authorisation for activating a Recipe
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Authorisation for activating a Recipe
The user who wants to activate a recipe must have the user permission bit 4 set.
If the user does not have this permission the error code "-4" is returned.
Best Regards
Leopold Knipp
Senior Support Specialist
If the user does not have this permission the error code "-4" is returned.
Best Regards
Leopold Knipp
Senior Support Specialist
- jimcook
- Posts:2
- Joined: Mon May 20, 2019 2:17 pm
Re: Authorisation for activating a Recipe
Thank you for the information. However, I am now wondering why this bit is required. When activating a recipe, all that is really happening is that datapoint element values are being set. I do not want to give our operators admin rights, but user bit 4 effectively does this. Is this really necessary? If this is the case, then I guess I will have to re-create the same functionality as the recipes give myself. Seems a shame to have to do this.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Authorisation for activating a Recipe
I do not know why it was implemented this way.
You can maybe use the Scheduler functionality to activate a recipe. Possibly this works without the necessity of user permission bit 4 for the user.
Best Regards
Leopold Knipp
Senior Support Specialist
You can maybe use the Scheduler functionality to activate a recipe. Possibly this works without the necessity of user permission bit 4 for the user.
Best Regards
Leopold Knipp
Senior Support Specialist