Commit 472a9143 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove unused isAllowed

parent bdf00a08
......@@ -65,33 +65,6 @@ function cmp_page_matches($page, & $matches, $fullwc = true) {
return false;
}
function isAllowed($username, $page)
{
global $_SESSION;
if (!isset($username)) {
return false;
}
/* root access check */
$user = getUserEntry($username);
if (isset($user)) {
if (isset($user['uid'])) {
if ($user['uid'] == 0) {
return true;
}
}
}
/* user privelege access check */
if (cmp_page_matches($page, $_SESSION['page-match'])) {
return true;
}
return false;
}
function isAllowedPage($page)
{
if (!isset($_SESSION['Username'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment