Bitrix API

RightsManager

Table of Contents

Constants

ACCESS_EDIT  = 'access_edit'
ACCESS_FULL  = 'access_full'
ACCESS_READ  = 'access_read'

Methods

__construct()  : mixed
canDelete()  : bool
Checks the right to delete.
canEdit()  : bool
Checks the right to edit.
canRead()  : bool
Checks the right to read.
canShare()  : bool
Checks the right to share.
getGroupsAndDepartments()  : array<string|int, mixed>
Returns an array of user groups and departments.

Constants

Methods

__construct()

public __construct(mixed $userId) : mixed
Parameters
$userId : mixed

canDelete()

Checks the right to delete.

public canDelete(int $reportId) : bool
Parameters
$reportId : int

Id report.

Return values
bool

canEdit()

Checks the right to edit.

public canEdit(int $reportId) : bool
Parameters
$reportId : int

Id report.

Return values
bool

canRead()

Checks the right to read.

public canRead(int $reportId) : bool
Parameters
$reportId : int

Id report.

Return values
bool

canShare()

Checks the right to share.

public canShare(int $reportId) : bool
Parameters
$reportId : int

Id report.

Return values
bool

getGroupsAndDepartments()

Returns an array of user groups and departments.

public getGroupsAndDepartments() : array<string|int, mixed>
Tags
throws
ArgumentException
throws
LoaderException
Return values
array<string|int, mixed>

        
On this page

Search results