We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d06b1f9 + 7c9f14e commit 23d2d05Copy full SHA for 23d2d05
app/models/concerns/hyrax/ability.rb
@@ -104,7 +104,7 @@ def download_users(id)
104
# Returns true if can create at least one type of work and they can deposit
105
# into at least one AdminSet
106
def can_create_any_work?
107
- Hyrax.config.curation_concerns.any? do |curation_concern_type|
+ curation_concerns_models.any? do |curation_concern_type|
108
can?(:create, curation_concern_type)
109
end && admin_set_with_deposit?
110
end
0 commit comments