marketo/silverstripe-relationship-permissions

This package is abandoned and no longer maintained. No replacement package was suggested.

An extension that allows for the definition of relationships to determine permssions through

Installs: 3 555

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 18

Forks: 1

Open Issues: 0

Type:silverstripe-module

dev-master 2016-06-02 03:38 UTC

This package is auto-updated.

Last update: 2024-03-15 17:17:45 UTC


README

Requirements

  • SilverStripe ^3.2

Installation

The recommended way to install the module is via composer

composer require marketo/silverstripe-relationship-permissions:dev-master

If you aren't using composer, pull down the code into its own directory.

Examples

To add this to a Page object, you can put the following code into your YAML configuration.

MyDataObjectType:
  extensions:
    - RelationshipPermissionExtension('RelationshipName')

The passed in argument should be the name of the relationship (has_one, many_many, etc) to find an object that has the relevant permission.

Limitations

If the data object type does not make use of the usual canXXX extension mechanism, then the extension will have NO effect. This extension is best used on data object types that either do not define the canXXX set of methods, or call parent::canXXX.

Run a dev/build?flush=1 to flush the config manifests to enable the new configuration.

License

See License

Maintainers