forked from science-ation/science-ation
3ba0d061f7
committee_auth_has_access($access) now. - Remove unused committee_login and committee_auth.php - Simplify the left bar logic for the committee links
17 lines
326 B
PHP
17 lines
326 B
PHP
<?
|
|
|
|
function committee_auth_has_access($access="")
|
|
{
|
|
|
|
switch($access) {
|
|
case 'config': return ($_SESSION['access_config'] == 'yes') ? true : false;
|
|
case 'admin': return ($_SESSION['access_admin'] == 'yes') ? true : false;
|
|
case 'super': return ($_SESSION['access_super'] == 'yes') ? true : false;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
|
|
?>
|