If access = 'noaccess' the current access (if any) will be deleted.
If access = 'view' or 'admin' the current access level is deleted and updated with the new value.
public setUserAccess ( string $userLogin, string $access, integer | array $idSites ) : boolean | ||
$userLogin | string | The user login |
$access | string | Access to grant. Must have one of the following value : noaccess, view, admin |
$idSites | integer | array | The array of idSites on which to apply the access level for the user. If the value is "all" then we apply the access level to all the websites ID for which the current authentificated user has an 'admin' access. |
return | boolean | true on success |