Add latest changes from icehrm pro
This commit is contained in:
@@ -1014,6 +1014,18 @@ class BaseService
|
||||
return $adminEmpId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Profile id attached to currently logged in user
|
||||
* @method getCurrentProfileId
|
||||
* @return {Integer}
|
||||
*/
|
||||
public function getCurrentUserProfileId()
|
||||
{
|
||||
$user = SessionUtils::getSessionObject('user');
|
||||
$signInMappingField = SIGN_IN_ELEMENT_MAPPING_FIELD_NAME;
|
||||
return $user->$signInMappingField;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get User by profile id
|
||||
* @method getUserFromProfileId
|
||||
|
||||
Reference in New Issue
Block a user