Restrict Public Viewing as Config Option
Brought to you by:
jberanek
Dear DevTeam,
we proudly and successfully use MRBS (behind a moodle plugin) in a K-12 alike school in Germany. Actually, it would be useful in our setting to limit even 'viewing' to authenticated users.
Would there be a chance to introduce some configurable check in the head part of all view php-files checking whether the current viewer is an authenticated user and keep the viewer out otherwise?
Since this all depends on a new config option normal/actuaö behaviour won't be affected and the MRBS would remain downwards compatible.
Thanks in advance for your feedback and eventually for the implementation!
Kind Regards from Germany,
Gregor Erhardt
If I've understood your requirement correctly, then this can already be done. Just set
$auth['deny_public_access'] = TRUE;
in your config file
Campbell
uargh, yip -- that works like hell! Sorry for having stolen your unvaluable time!
Kind Regards,
Greg