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

check if user can create based on configured collection model #5273

Merged
merged 1 commit into from Dec 7, 2021

Conversation

elrayle
Copy link
Contributor

@elrayle elrayle commented Dec 6, 2021

Fixes #5272

Dashboard -> Collections was checking hardcoded Collection instead of Hyrax.config.collection_class to determine if the user could create any collections. This was preventing the New Collection button from displaying when configured to use Hyrax::PcdmCollection model.

@samvera/hyrax-code-reviewers

Fixes #5272

Dashboard -> Collections was checking hardcoded `Collection` instead of `Hyrax.config.collection_class` to determine if the user could create any collections.  This was preventing the `New Collection` button from displaying when configured to use `Hyrax::PcdmCollection` model.
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

Good catch!

@elrayle elrayle merged commit 58e014e into main Dec 7, 2021
@elrayle elrayle deleted the fix/5272_missing_new_collection_button branch December 7, 2021 16:13
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.

Create Collection button missing when collection model is PcdmCollection
2 participants