I have a PHP-based filter that works perfectly for the Admin but displays no block for any other role. When I use the specify-ID mode (as opposed to the specify PHP mode) the block displays correctly for all roles. So I'm thinking there must be some PHP-related permission that has not been set for non-Admins, but for the life of me I cannot locate it. Any suggestions would be appreciated. Thanks.

Comments

gnassar’s picture

Have you tested with the PHP merely returning the same ID list as you're entering in ID list mode?

In other words, if your ID list was
3, 4, 5, 6

try the PHP
return ( array ( 3, 4, 5, 6 ) );

I think you'll find it'll work for the same users the ID list does.

This would mean that the problem is with your PHP code; something in it requires admin permissions to load.