Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Dashboard API > Methods and objects of the dashboard API > Usable methods

Verify users in Job Functions (isCurrentUserInJobFunction)

Scroll Prev Top Next More

Please note: This method is deprecated. Use the method isInJobFunction of the ApiUser-Object instead.

The method checks if the logged in user is in the Job Function.

Parameter

Type

Description

$jobFunction

string

Name of the Job Function

You may use them in e.g. the isAuthorized method to share a widget only for certain Job Functions.

Example:

public function isAuthorized()

{

    return $this->isCurrentUserInJobFunction('development');

}