The ability to open and close personal shifts without employee PIN codes has been added

Tags:

The functions for opening and closing personal shifts were added earlier, but they only allowed managing the personal shift of the user on whose behalf the plugin operates after authorizing with a PIN code. Now it is possible to manage the personal shifts of other users as well.

To do this, an optional argument user has been added to the methods OpenPersonalSession and ClosePersonalSession. If this argument is not specified, by default, the personal shift is still opened or closed for the user on whose behalf the plugin operates, and this user is determined as before by the credentials argument obtained from authentication using the PIN code.

Now, acting on behalf of a service user with a known PIN code, the plugin can open or close the personal shift of another user specified as user, without knowing their PIN code. To manage another user’s personal shift, the service user must have the following rights: