HOR-1098-B "PMFuncion para remover usuarios..." SOLVED
This commit is contained in:
@@ -3519,3 +3519,31 @@ function PMFAssociateUploadedFilesWithInputFile($inputDocumentUid, $gridVariable
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @method
|
||||
*
|
||||
* Remove users from a group
|
||||
*
|
||||
* @name PMFRemoveUsersToGroup
|
||||
* @label PMF Remove users from a group
|
||||
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFRemoveUsersToGroup.28.29
|
||||
*
|
||||
* @param string | $groupId | Group Uid | The unique Uid of the group.
|
||||
* @param array | $users | Array of users | Array of users to remove.
|
||||
*
|
||||
* @return array | $result | array
|
||||
*/
|
||||
function PMFRemoveUsersToGroup($groupUid, array $users)
|
||||
{
|
||||
try {
|
||||
$user = new \ProcessMaker\BusinessModel\Group\User();
|
||||
|
||||
$result = $user->unassignUsers($groupUid, $users);
|
||||
|
||||
//Return
|
||||
return $result;
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user