Closed (outdated)
Project:
Media Revisions UI
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2022 at 13:51 UTC
Updated:
6 Feb 2023 at 17:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
batigolixThe missing method was dropped in this issue #3117019: Incompatible with JSONAPI
Comment #3
batigolixUnsure if there is a problem in putting this method back into the class, but here is a patch that does that, so that editing media becomes possible.
Comment #4
batigolixComment #5
gombi commentedHi, I was able to reproduce the issue on Drupal 9.3.x, where ::countDefaultLanguageRevisions() was removed from Drupal\media\Access\MediaRevisionAccessCheck.
I can confirm that @batigolix's patch from #3 resolves the issue. I would just suggest adding an
accessCheck(FALSE)(it's the default only since 9.2.x - https://www.drupal.org/node/3201242), in order to maintain backward compatibility.Comment #6
chrissnyderPatch #5 resolved the issue for me with Drupal 9.3
Comment #8
bcizej commentedThanks both for your work on this. Tests are failing due to changes in access implementation in D9.3. I've added a new 2.1 RC release that is compatible with the new implementation in 9.3, so I'm closing this.
Comment #11
savkaviktor16@gmail.com commentedre-rolled
upd. sorry, uploaded by mistake