Skip to content

Role-based embargo exemption.#28

Open
rosiel wants to merge 2 commits into
discoverygarden:mainfrom
rosiel:role-based-exemption
Open

Role-based embargo exemption.#28
rosiel wants to merge 2 commits into
discoverygarden:mainfrom
rosiel:role-based-exemption

Conversation

@rosiel

@rosiel rosiel commented Jan 16, 2024

Copy link
Copy Markdown
Contributor

Issue: #27

This lets you specify roles that are exempt from an embargo. This will help with institutional access to content where users may not be forever responsible for individual objects.

Comment thread src/Access/QueryTagger.php Outdated

// ... the user has a role that is exempted from the embargo.
$role_alias = $query->leftJoin('embargo__exempt_roles', 'r', 'e.id = %alias.entity_id');
$group->condition("{$role_alias}.exempt_roles_target_id",$this->user->getRoles(), 'IN');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if I was able to test this query section, but the rest appears to be working.

@willtp87 willtp87 added the minor Added functionality that is backwards compatible. label Jan 22, 2024
@bondjimbond

Copy link
Copy Markdown

@rosiel Is this a dead PR, or is it still feasible to get this in? While I know there are concerns about scalability, role embargoes would definitely solve some problems for us.

@rosiel

rosiel commented May 29, 2025

Copy link
Copy Markdown
Contributor Author

is there interest from DGI in merging this? I can work on the conflicts if there is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Added functionality that is backwards compatible.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants