Commit a14796a8 authored by Ad Schellevis's avatar Ad Schellevis

remove old privilege file

parent 43d14ba9
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -63,21 +63,6 @@ function cmp_page_matches($page, & $matches, $fullwc = true) {
return false;
}
function map_page_privname($page) {
global $priv_list;
foreach ($priv_list as $pname => $pdata) {
if (strncmp($pname, "page-", 5))
continue;
$fullwc = false;
if (!strcasecmp($page,"any")||!strcmp($page,"*"))
$fullwc = true;
if (cmp_page_matches($page, $pdata['match'], $fullwc))
return $pname;
}
return false;
}
function get_user_privdesc(& $user) {
global $priv_list;
......
......@@ -29,6 +29,24 @@
require_once('rrd.inc');
function map_page_privname($page) {
global $priv_list;
foreach ($priv_list as $pname => $pdata) {
if (strncmp($pname, "page-", 5))
continue;
$fullwc = false;
if (!strcasecmp($page,"any")||!strcmp($page,"*"))
$fullwc = true;
if (cmp_page_matches($page, $pdata['match'], $fullwc))
return $pname;
}
return false;
}
/*
* Upgrade functions must be named:
* upgrade_XXX_to_YYY
......
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