Skip to content

Conversation

@rosiel
Copy link
Contributor

@rosiel rosiel commented Jan 16, 2024

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.


// ... 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
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

@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
Copy link
Contributor Author

rosiel commented May 29, 2025

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