diff --git a/javascripts/theme.js b/javascripts/theme.js index 03548b3..892ced7 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -199,6 +199,16 @@ $(function() { }); } + var user_href = $('#loggedas a').attr('href'); + if (user_href) { + $('div.journal.has-notes').each(function(idx, entry) { + var user_entry_href = $(entry).find('a.user').attr('href'); + if (user_entry_href && user_entry_href != user_href) { + $(entry).find('.icon-edit').hide(); + } + }); + } + if ($('.administration').length == 0) { /* fake access control */ return;