Show Current Rule is an entirely internal component that is used to display the rules in the top half of the Access Control
component/modal. It should not be called within the apps, and the only things that can be configured are the Access Control
Component is that it passes through the readOnly
property (will not display buttons if readOnly), and it passes through the
booleanTypes
in order to display them.
Again, however, this is entirely set up for you, and thus, as long as you set up the Access Control Component correctly, this will also work as expected.
Properties
activeTypes
String privateactiveTypes is an internally set (by didReceiveAttrs
) comma separated string for each boolean type this
rule has access to. It is what is actually displayed. Default is "Base" if rule has no extra permissions.
department
Computed String privateComputed Name of the relevant department for this rule. Will be displayed in parenthesis if applicable.
property
StringThe property is a string which is usually the User Type (User/Dept/Group), and it is displayed in bold, and used to get the name of the property.
readOnly
BooleanreadOnly is the property which determines if the buttons will be displayed to this user or not.
It is passed on from the Access Control Component's readOnly
property.