In public/index.php, add code for checking a staff member's login status before giving access to view a publicly invisible page. Only a staff member should have the right to view one. For now, adding preview=true to the index.php URL creates an IDOR.
In public/index.php, add code for checking a staff member's login status before giving access to view a publicly invisible page. Only a staff member should have the right to view one. For now, adding preview=true to the index.php URL creates an IDOR.