"""Utils for salessheets logic.""" from salessheets.constants import header def is_workstation_user(user_id=None): """Check whether the call was performed on behalf of workstation user. Args: user_id (str): user id from request header. Return: Boolean: True if call was performed on behalf of workstation user, False in all other cases. """ if user_id: return user_id.startswith(header.WORKSTATION_USER_PREFIX) return False