discoverygarden/islandora_hierarchical_access 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

discoverygarden/islandora_hierarchical_access

最新稳定版本:v1.3.4

Composer 安装命令:

composer require discoverygarden/islandora_hierarchical_access

包简介

README 文档

README

Implements an access control model wherein:

  • files belong to media,
  • media belong to nodes that they reference; and,
  • transitively, files belong to media

Access 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:

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.

Maintainers/Sponsors

License

GPLv3

统计信息

  • 总下载量: 1.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-07-05