projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ebec5
)
Try again to fix the array/hash ambiguity.
author
Jan Schneider
<jan@horde.org>
Mon, 15 Mar 2010 22:57:14 +0000
(23:57 +0100)
committer
Jan Schneider
<jan@horde.org>
Mon, 15 Mar 2010 22:57:14 +0000
(23:57 +0100)
kronolith/js/kronolith.js
patch
|
blob
|
history
diff --git
a/kronolith/js/kronolith.js
b/kronolith/js/kronolith.js
index
c5c5fa0
..
869cf59
100644
(file)
--- a/
kronolith/js/kronolith.js
+++ b/
kronolith/js/kronolith.js
@@
-2406,7
+2406,7
@@
KronolithCore = {
}
break;
case 'groups':
- if (
perm.value.size(
)) {
+ if (
!Object.isArray(perm.value
)) {
$H(perm.value).each(function(group) {
this.insertGroupOrUser(type, 'group', group.key);
groupPerms = group.value;
@@
-2423,7
+2423,7
@@
KronolithCore = {
}
break;
case 'users':
- if (
perm.value.size(
)) {
+ if (
!Object.isArray(perm.value
)) {
$H(perm.value).each(function(user) {
if (user.key != Kronolith.conf.user) {
this.insertGroupOrUser(type, 'user', user.key);