Authorisation for activating a Recipe

Find and share HowTos to various installations / configurations!
Search

Post Reply
4 posts • Page 1 of 1
jimcook
Posts: 2
Joined: Mon May 20, 2019 12:17 pm

Authorisation for activating a Recipe

Post by jimcook » Fri Nov 08, 2019 12:46 pm

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

User avatar
leoknipp
Posts: 1985
Joined: Tue Aug 24, 2010 5:28 pm

Re: Authorisation for activating a Recipe

Post by leoknipp » Mon Nov 11, 2019 8:24 am

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

jimcook
Posts: 2
Joined: Mon May 20, 2019 12:17 pm

Re: Authorisation for activating a Recipe

Post by jimcook » Mon Nov 11, 2019 2:11 pm

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.

User avatar
leoknipp
Posts: 1985
Joined: Tue Aug 24, 2010 5:28 pm

Re: Authorisation for activating a Recipe

Post by leoknipp » Tue Nov 12, 2019 9:11 am

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

Post Reply
4 posts • Page 1 of 1