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');
}