projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79c807
)
Additional fix for Windows specific issue in access roles editor.
author
ApMuthu
<ApMuthu@usa.net>
Fri, 3 Apr 2015 19:11:19 +0000
(21:11 +0200)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 3 Apr 2015 19:12:45 +0000
(21:12 +0200)
admin/security_roles.php
patch
|
blob
|
history
diff --git
a/admin/security_roles.php
b/admin/security_roles.php
index 8c96b1eb13edb37f8a39a7f8e370f8721e255fdd..2905f30fab624688209defa1cb69180b0f74b67c 100644
(file)
--- 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);