Skip to content

Commit 23d2d05

Browse files
authored
Merge pull request #6705 from samvera/favor-method-call
♻️ Favor existing method call over custom
2 parents d06b1f9 + 7c9f14e commit 23d2d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/concerns/hyrax/ability.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def download_users(id)
104104
# Returns true if can create at least one type of work and they can deposit
105105
# into at least one AdminSet
106106
def can_create_any_work?
107-
Hyrax.config.curation_concerns.any? do |curation_concern_type|
107+
curation_concerns_models.any? do |curation_concern_type|
108108
can?(:create, curation_concern_type)
109109
end && admin_set_with_deposit?
110110
end

0 commit comments

Comments
 (0)