Re: [MRBS-general] Disallow level 0 users to see anything?
Brought to you by:
jberanek
From: <pa...@hk...> - 2010-06-24 13:51:38
|
Siterer Campbell Morrison <cam...@gm...>: > 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. Yes please. I have done this manually each time after an upgrade. -- Pål Monstad -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |