From: Jan Schneider Date: Wed, 19 May 2010 17:39:24 +0000 (+0200) Subject: Only show sharing icon to own calendars. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=508cd16aa304e64bb7a0977b717edabb001715d7;p=horde.git Only show sharing icon to own calendars. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 158518aa4..374cf08e2 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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 }));