From 216de59aba805c2eacf1d6742f05ea7e9199f3b9 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 5 Sep 2015 23:14:45 +0200 Subject: Support avatars and improve permissions integration on sandstorm We now update the internal state of the application every time a user connects to the application, which means that if the sandstorm sharing graph has changed since the last time we saw a user, his permissions will be updated accordingly. --- client/components/users/userAvatar.jade | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade index 5a3398cd..e08666e5 100644 --- a/client/components/users/userAvatar.jade +++ b/client/components/users/userAvatar.jade @@ -9,10 +9,11 @@ template(name="userAvatar") span.member-presence-status(class=presenceStatusClassName) span.member-type(class=memberType) - if showEdit - if $eq currentUser._id userData._id - a.edit-avatar.js-change-avatar - i.fa.fa-pencil + unless isSandstorm + if showEdit + if $eq currentUser._id userData._id + a.edit-avatar.js-change-avatar + i.fa.fa-pencil template(name="userAvatarInitials") svg.avatar.avatar-initials(viewBox="0 0 {{viewPortWidth}} 15") -- cgit v1.2.3-1-g7c22