1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-13 05:35:39 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/using-isinrole.md
Dmitriy Marmyshev 902a46e07c 867 Добавлен тест наличия описаний проверок в Markdown
- добавлены недостающие описания
- исправлены переименованные описания
2022-06-24 22:22:53 +03:00

608 B

The "IsInRole" method was used

To check access rights in the code, use the AccessRight method.

Noncompliant Code Example

If IsInRole("AddClient") Then ...

Compliant Solution

If AccessRight("Add", Metadata.Catalogs.Client) Then ...

This approach allows you to increase the code robustness when configuration roles are revised.

See