Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks if user is allowed to reset password for warehouse users connected to a specific worker.
Syntax
server public static boolean allowUserToChangePassword(WHSWorkerRecId _currentWorkerId, WHSWorkerRecId _workerRecId)
Run On
Server
Parameters
- _currentWorkerId
Type: WHSWorkerRecId Extended Data Type
The warehouse worker WHSWorkerRecId assigned to current user.
- _workerRecId
Type: WHSWorkerRecId Extended Data Type
The warehouse worker WHSWorkerRecId for which we validate permissions to reset password functionality.
Return Value
Type: boolean
true if user is one of the admin or warehouse manager roles or if the current worker is the worker for which user wants to change password; false for the rest of the cases.