2017 © Pedro Peláez
 

silverstripe-module silverstripe-relationship-permissions

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

image

marketo/silverstripe-relationship-permissions

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

  • Thursday, June 2, 2016
  • by nyeholt
  • Repository
  • 16 Watchers
  • 2 Stars
  • 1,587 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

SilverStripe Relationship Permission Sources

Requirements

  • SilverStripe ^3.2

Installation

The recommended way to install the module is via composer, (*1)

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

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

Examples

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

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., (*4)


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., (*5)

Run a dev/build?flush=1 to flush the config manifests to enable the new configuration., (*6)

License

See License, (*7)

Maintainers

The Versions

02/06 2016

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

permissions silverstripe