Bitrix API

RolePermissionService

FinalYes

Table of Contents

Methods

__construct()  : mixed
deletePermissionsByDashboard()  : void
deleteRole()  : Result
Deletes a role by id.
saveRole()  : Result
saveRolePermissions()  : Result

Methods

deletePermissionsByDashboard()

public deletePermissionsByDashboard(int $dashboardId) : void
Parameters
$dashboardId : int

saveRole()

public saveRole(string $name[, int|null $roleId = null ]) : Result
Parameters
$name : string

Role name.

$roleId : int|null = null

Role identification number.

Return values
Result

saveRolePermissions()

public saveRolePermissions(array<string|int, mixed> $permissionSettings) : Result
Parameters
$permissionSettings : array<string|int, mixed>
Tags
throws
SqlQueryException
Return values
Result

        
On this page

Search results