X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fsecurity_roles.php;h=2905f30fab624688209defa1cb69180b0f74b67c;hb=e0544eddcab799b9088e0a774f63443e3f634bb6;hp=8c96b1eb13edb37f8a39a7f8e370f8721e255fdd;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/admin/security_roles.php b/admin/security_roles.php index 8c96b1eb..2905f30f 100644 --- a/admin/security_roles.php +++ b/admin/security_roles.php @@ -85,14 +85,14 @@ if (get_post('addupdate')) $sections = array(); $areas = array(); foreach($_POST as $p =>$val) { - if (substr($p,0,4) == 'Area') { + if (substr($p,0,4) == 'Area' && $val == 1) { $a = substr($p, 4); if (($a&~0xffff) && (($a&0xff00)<(99<<8))) { $sections[] = $a&~0xff; // add extended section for plugins } $areas[] = (int)$a; } - if (substr($p,0,7) == 'Section') + if (substr($p,0,7) == 'Section' && $val == 1) $sections[] = (int)substr($p, 7); } // $areas = sort_areas($areas);