Try again to fix the array/hash ambiguity.
authorJan Schneider <jan@horde.org>
Mon, 15 Mar 2010 22:57:14 +0000 (23:57 +0100)
committerJan Schneider <jan@horde.org>
Mon, 15 Mar 2010 22:57:14 +0000 (23:57 +0100)
kronolith/js/kronolith.js

index c5c5fa0..869cf59 100644 (file)
@@ -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);