Closed (fixed)
Project:
Media Revisions UI
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2020 at 08:07 UTC
Updated:
16 Jul 2020 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nejcramsak commentedAdded permissions and permission check and wrote tests.
Comment #3
nejcramsak commentedComment #4
nejcramsak commentedFixed access check permissions.
Comment #5
bcizej commentedThanks @nejcramsak but the access permissions do not check if the view/update/delete media item permission is set along with the view/update/delete revision permissions. I've added a patch for this and I refactored the tests.
Comment #6
kbrodej commentedHi. Reviewed the patch from #5. Tested the permission combinations and run the tests. Works as expected.
However I did find an minor CS issue with t() function. Patch attached.
Comment #8
bcizej commentedReviewed and commited, thanks everyone.