Only show sharing icon to own calendars.
authorJan Schneider <jan@horde.org>
Wed, 19 May 2010 17:39:24 +0000 (19:39 +0200)
committerJan Schneider <jan@horde.org>
Wed, 19 May 2010 17:39:24 +0000 (19:39 +0200)
kronolith/js/kronolith.js

index 158518a..374cf08 100644 (file)
@@ -1012,7 +1012,7 @@ KronolithCore = {
             .store('calendarclass', type)
             .setStyle({ backgroundColor: cal.bg, color: cal.fg })
             .insert(cal.name.escapeHTML());
-        if (cal.perms) {
+        if (cal.owner && cal.perms) {
             $H(cal.perms).each(function(perm) {
                 if (perm.key != 'type' && perm.value) {
                     calendar.insert(' ').insert(new Element('img', { src: Kronolith.conf.URI_IMG + 'attendees-' + cal.fg.substring(1) + '.png', title: Kronolith.text.shared }));