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

Issue 1291 #730

Closed
wants to merge 9 commits into from
Closed

Issue 1291 #730

wants to merge 9 commits into from

Conversation

dannylamb
Copy link

All work done by @ajstanley. I just migrated it over from Islandora-CLAW/islandora.

Original PR: Islandora/documentation#175

GitHub Issue: (Islandora/documentation#1291)

What does this Pull Request do?

Odd failures will occur if a user who has not been assigned the hardcoded fedoraAdmin role
attempts to add a media type that is set to save to the fedora filesystem.

What's new?

This fix adds a filter to the controller so the user will not see media types they cannot use.

How should this be tested?

Create a user with the Administrator role, but without fedoraAdmin role.
Log in or masquerade as that user.
Have at least one media type that saves to fedora and one that does not.
(This setting is found under the field settings for the file field in the Media type).
Navigate to the Add Media button on the Media tab of any object.
You should only see media types that do NOT save to fedora.

Interested parties

@Islandora-CLAW/committers

@elizoller
Copy link
Member

@ajstanley I can test this once the conflict is resolved

@ajstanley
Copy link

ajstanley commented Aug 19, 2020 via email

@DonRichards
Copy link
Member

Is this still a relevant pull request or can this be closed?

@ajstanley
Copy link

ajstanley commented Aug 10, 2021 via email

@seth-shaw-unlv seth-shaw-unlv deleted the issue-1291 branch September 1, 2021 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants