-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dicom_archive] Dicom archive siteproject main #9549
base: main
Are you sure you want to change the base?
Conversation
// Check if resources with null should be included in the result set | ||
if (!empty($this->nullProjectPermissionNames())) { | ||
$provisioner = $provisioner->filter( | ||
new \LORIS\Data\Filters\NullProjectOrUserProjectMatch( | ||
$this->nullProjectPermissionNames() | ||
) | ||
); | ||
} else { | ||
$provisioner = $provisioner->filter( | ||
new \LORIS\Data\Filters\UserProjectMatch() | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes should be removed as module defines its own version of this function
6704ee9
to
01cc574
Compare
@@ -92,6 +123,75 @@ class Dicom_Archive extends \DataFrameworkMenu | |||
return $provisioner; | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DA refactor undo changes dataframework Update dicom_archive.class.inc Update viewdetails.class.inc Update viewdetails.class.inc double session
01cc574
to
68c9763
Compare
Your PR is working correctly. Once you rebase and fix the grammar/typos, this can be merged. |
Brief summary of changes
This PR adds advanced site and project permissions to the dicom archive. It is designed to be fully backwards compatible based on the
useImagingSiteProjectPermissions
configuration setting. Here is how the permissions are designed to workTO BE NOTED: The core of this PR is the work done in the
dicom_archive::getDataProvisionerWithFilters()
function. The code there could have been made slightly more concise but I wrote it in that way because I would like it to eventually become the DEFAULT dataframework filtering logic since it accounts for most if not all usecases (replacing the current UserSiteMAtchOrHasAnyPermissions). It defines flags that I would like to make standard going forward likedataSessionCanBeNull
where multiple module seem to lack a session related to the resource.TODO:
Testing instructions (if applicable)
Link(s) to related issue(s)