Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: Gallery crashes on contributor roles #19060
Currently, the gallery block is crashing on contributor roles. This PR fixes this problem by ensuring the upload mechanism only executes if, in fact, we have images to upload.
How has this been tested?
With a contributor user, I added a gallery block and verified it does not crashes (although the user can not do anything).