Because of this bug people are able see images through postcard creation page, which they dont have permissions to view.
Open
postcards.phpFind:
1
| if (!check_permission("auth_sendpostcard", $cat_id)) { |
Replace with:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| /* FIX ACCESS RESTRICTED IMAGES ORIGINAL BLOCK: if (!check_permission("auth_sendpostcard", $cat_id)) { */ /* FIX ACCESS RESTRICTED IMAGES START REPLACE */ if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !check_permission("auth_sendpostcard", $cat_id)) { /* FIX ACCESS RESTRICTED IMAGES END REPLACE */ |