Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/discoverygarden/islandora_hierarchical_access
Implements an Islandora access control hierarchy.
https://github.com/discoverygarden/islandora_hierarchical_access
access-control drupal drupal-module islandora
Last synced: about 1 month ago
JSON representation
Implements an Islandora access control hierarchy.
- Host: GitHub
- URL: https://github.com/discoverygarden/islandora_hierarchical_access
- Owner: discoverygarden
- License: gpl-3.0
- Created: 2022-12-15T21:18:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T11:47:23.000Z (3 months ago)
- Last Synced: 2024-09-28T14:21:37.052Z (about 1 month ago)
- Topics: access-control, drupal, drupal-module, islandora
- Language: PHP
- Homepage:
- Size: 182 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Islandora Hierarchical Access
Implements an access control model wherein:
- files belong to media,
- media belong to nodes that they reference; and,
- transitively, files belong to mediaAccess to entities which are related outside of the target relationships without any _inside_ should not be affected.
Where:
- a file is referenced by multiple media, access to the file should be granted if at least one of the media is accessible
- media which have the "media of" relationship to at least one node should only be accessible if at least one of those nodes is accessible## Development
A handful of automated/PHPUnit tests are included. Running tests should be able to be accomplished via invocations such as:
```bash
DRUPAL_ROOT=/opt/www/drupal
sudo -u www-data -- env -C $DRUPAL_ROOT \
SIMPLETEST_BASE_URL="http://localhost" \
SIMPLETEST_DB=pgsql://drupal:drupal@localhost:5432/drupal_default \
$DRUPAL_ROOT/vendor/bin/phpunit "--bootstrap=$DRUPAL_ROOT/core/tests/bootstrap.php" \
--verbose "$DRUPAL_ROOT/modules/contrib/islandora_hierarchical_access"
```## Troubleshooting/Issues
Having problems or solved a problem? Contact
[discoverygarden](http://www.discoverygarden.ca/).## Maintainers/Sponsors
* [discoverygarden](http://www.discoverygarden.ca/)
## License
[GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt)