RestrictionsPlugin

RestrictionsPlugin

Plugin responsible for applying restrictions rules.

Constructor

new RestrictionsPlugin(rules, options)

Source:
Parameters:
Name Type Description
rules Object A Map with restrictions rules to be applied. If defined, overrides the rules defined on the model's config.
options Object An object with options to configure the plugin.

Extends

  • Plugin

Methods

register(The)

The Restrictions Plugin binds the 'post_config' and 'part' events, in order to: - retrieve the model's configuration. - change the necessary parts making them comply with the restrictions rules.
Source:
Parameters:
Name Type Description
The Ripe Ripe instance in use.

unregister(The)

The unregister to be called (by the owner) the plugins unbinds events and executes any necessary cleanup operation.
Source:
Parameters:
Name Type Description
The Ripe Ripe instance in use.