Цитата:
Сообщение от
Lucky13
RLS не действует на обычный оператор select, поэтому просто
Неправда, действует.
Цитата из документации
Цитата:
You may want to code other methods on reports or forms, and still have the rules of RLS applied. Or, within the RLS-scoped methods listed in the previous section, you might want the scoped RLS to be disabled on selected queries. To have this functionality, a method on a table buffer is available, recordLevelSecurity, to overrule default behavior.
Within scoped RLS, you simply "sign-up" for RLS coverage using:
SalesLine.recordLevelSecurity(true);
And in RLS covered X++ code, you may “sign-up” for an exemption from the rule by using:
SalesLine.recordLevelSecurity(false);
However, generally speaking, no special coding is required.