December 8, 2023 in Developer Connection
We're experiencing an issue with moderators with only file permissions granted being unable to see pending versions in the approval queue.
I looked into this and there's a check in ./applications/downloads/extensions/core/ContentRouter/Files.php:49 where PendingVersion is only inserted where \IPS\downloads\File::modPermission( 'unhide', $member ) is true. However, since no container is provided, this will only return true if the user has global content unhide permission.
Sorry, Im a little confused here. Did you mean you set them to be able to see pending versions, rather than setting them not to be able to see?
Moderators with all Downloads permissions granted do not see pending versions in the approval queue.
Is there a permission I'm not seeing for pending files versions?
If they are able to see anything else needing approval, then I wouldnt think so. Unless you dont give permission to see hidden items? If you are unsure, please let me know the name of an example moderator who cannot see these, and I can log in and take a look for you
To replicate on any IPS community:
I've fixed this on my community so I don't need this to be fixed upstream - but this is a heads up for a bug in Invision Community.
Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
Started 7 hours ago
Started Tuesday at 10:12 PM
Started Saturday at 09:46 AM
Started Friday at 08:26 PM
Started February 22
Started 18 hours ago
Started Tuesday at 01:15 AM
Started 6 hours ago