forked from science-ation/science-ation
2715d67aef
- Allow user_personal.php to handle committee members - Add password field if the editer in user_personal has access_super - Allow a committee member to edit anyone in user_personal.php - Convert auth_required to user_auth_required, and check for both a user type and an access level (if committee) - Convert the committee to the new user system (BIG change :) - Remove the ^M from admin/committees.php
18 lines
356 B
PHP
18 lines
356 B
PHP
<?
|
|
require_once("user.inc.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;
|
|
}
|
|
|
|
|
|
?>
|