projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b8fb6
)
fix ACL cache bug, RT#27352, fallout from RT#4696
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 24 Mar 2014 19:04:43 +0000
(12:04 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 24 Mar 2014 19:04:43 +0000
(12:04 -0700)
FS/FS/access_user.pm
patch
|
blob
|
history
diff --git
a/FS/FS/access_user.pm
b/FS/FS/access_user.pm
index
33db1fb
..
05d87c3
100644
(file)
--- a/
FS/FS/access_user.pm
+++ b/
FS/FS/access_user.pm
@@
-469,7
+469,7
@@
sub access_right {
unless ( grep !exists($self->{_ACLcache}{$_}), @$rightname ) {
warn "$me ACL cache hit for ". join(', ', @$rightname). "\n"
if $DEBUG;
- return
grep $self->{_ACLcache}{$_}, @$rightname
+ return
scalar( grep $self->{_ACLcache}{$_}, @$rightname );
}
warn "$me ACL cache miss for ". join(', ', @$rightname). "\n"