projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63720c2
)
fix ACL cache bug, RT#27352, fallout from RT#4696
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 24 Mar 2014 19:04:42 +0000
(12:04 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 24 Mar 2014 19:04:42 +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
41fcd1e
..
eb609c0
100644
(file)
--- a/
FS/FS/access_user.pm
+++ b/
FS/FS/access_user.pm
@@
-404,7
+404,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"