Re: [MRBS-general] Disallow level 0 users to see anything?
Brought to you by:
jberanek
From: Campbell M. <cam...@gm...> - 2010-06-24 12:06:45
|
It's quite easy to do. You'll just need to copy the authorisation checks that appear in some of the other pages and put if (empty($area)) { $area = get_default_area(); } // If we dont know the right date then make it up if (!isset($day) or !isset($month) or !isset($year)) { $day = date("d"); $month = date("m"); $year = date("Y"); } if (!getAuthorised(1)) { showAccessDenied($day, $month, $year, $area, isset($room) ? $room : ""); exit; } near the top of each page that you want protected. As this seems to be quite a common need I'll also have a look at putting the feature in the trunk. Campbell -----Original Message----- From: Matthias Hunstig [mailto:mat...@un...] Sent: 24 June 2010 12:28 To: mrb...@li... Subject: [MRBS-general] Disallow level 0 users to see anything? Hello, In the standard setup of MRBs, level 0 users (= everyone) can see almost everything. Is there a way to change this so that only logged in users (levels 1+) can see any content? Thanks for any hints, Matthias Hunstig ---------------------------------------------------------------------------- -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ mrbs-general mailing list mrb...@li... https://lists.sourceforge.net/lists/listinfo/mrbs-general Want to unsubscribe: mailto:mrb...@li...?subject=unsubscribe |