Skip to content
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

[MRI Violations] violated_scans_edit permission should be removed #6723

Closed
driusan opened this issue Jun 11, 2020 · 3 comments · Fixed by #6747
Closed

[MRI Violations] violated_scans_edit permission should be removed #6723

driusan opened this issue Jun 11, 2020 · 3 comments · Fixed by #6747
Assignees
Labels
Beginner Friendly PR or Issue appears to be easy for someone to use to familiarize themselves with LORIS Cleanup PR or issue introducing/requiring at least one clean-up operation

Comments

@driusan
Copy link
Collaborator

driusan commented Jun 11, 2020

The default schema includes the permission:

(20,'violated_scans_edit','Violated Scans: Edit MRI protocol table','2'),

This appears to have only one reference in resolved_violations.class.inc

        $this->tpl_data['violated_scans_modifications']
            = $user->hasPermission('violated_scans_edit');

However, the violated_scans_modifications template variable is not referenced in any template. The code and permission can be removed.

@driusan driusan added Category: Bug PR or issue that aims to report or fix a bug Cleanup PR or issue introducing/requiring at least one clean-up operation Beginner Friendly PR or Issue appears to be easy for someone to use to familiarize themselves with LORIS and removed Category: Bug PR or issue that aims to report or fix a bug labels Jun 11, 2020
@laemtl laemtl self-assigned this Jun 15, 2020
@christinerogers
Copy link
Contributor

this is a followup cleanup task from making the mri_protocol table read-only in #6372

@mohadesz
Copy link
Contributor

mohadesz commented Oct 6, 2020 via email

@christinerogers
Copy link
Contributor

our condolences @mohadesz :)

driusan pushed a commit that referenced this issue Dec 7, 2020
A patch was created to Remove the unused permission violated_scans_edit from the database.

    Resolves #6723
AlexandraLivadas pushed a commit to AlexandraLivadas/Loris that referenced this issue Jun 29, 2021
A patch was created to Remove the unused permission violated_scans_edit from the database.

    Resolves aces#6723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner Friendly PR or Issue appears to be easy for someone to use to familiarize themselves with LORIS Cleanup PR or issue introducing/requiring at least one clean-up operation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants