Menu

#174 Restrict Public Viewing as Config Option

closed
None
5
2012-07-20
2011-10-23
No

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

Discussion

  • Campbell Morrison

    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

     
  • Gregor Erhardt

    Gregor Erhardt - 2011-10-23

    uargh, yip -- that works like hell! Sorry for having stolen your unvaluable time!

    Kind Regards,
    Greg