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.

Show:

activeTypes

String private

activeTypes 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.

delete

Action

Delete is the action that is passed in for the delete button.

department

Computed String private

Computed Name of the relevant department for this rule. Will be displayed in parenthesis if applicable.

edit

Action

Edit is the action that is passed in for the edit button.

property

String

The 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

Boolean

readOnly 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.

rule

Model

The Rule is the Access Control is a single row from the Access Table, which is to be displayed (includes user type, boolean types and information about the user/group/dept, etc). This is displayed by the Access Control component in three groups (divided by user type).

types

Object

The Boolean Types of this rule, whether or not this user has access to each one.