BizDoc configuration components, including form, report, widget, utility, guide, folder and cube views, can be restricted by setting privileges in bizdoc.json configuration file.
Refer to rules on how to introduct new rule variables.
Note that some managed components have a method you can implementate to program complex privileges, such as testing a 3rd party system.
One of those is Form, which has CanCreate() method you can be override.
public class MyForm : FormBase<MyModel> {
private readonly IHttpContext _httpContext;
public MyForm(IHttpContext httpContext) => _httpContext = httpContext;
...
public override bool CanCreate => _httpContext.Identity.IsInRole("System");
}
BizDoc configuration components, including form, report, widget, utility, guide, folder and cube views, can be restricted by setting privileges in bizdoc.json configuration file.
In additions to identity roles, provided by identity manager, privileges accepts a rule, which evaluates to a JavaScript expression.
Refer to rules on how to introduct new rule variables.