diff --git a/client/security.coffee b/client/security.coffee
index 07bb0cc..ff17c28 100644
--- a/client/security.coffee
+++ b/client/security.coffee
@@ -51,7 +51,13 @@ update_footer = (ownerName, isAuthenticated) ->
$('footer > #security').empty()
if isAuthenticated
- $('footer > #security').append ""
+ if isOwner
+ logoutTitle = "Sign-out"
+ logoutIconClass = ''
+ else
+ logoutTitle = "Not Owner : Sign-out"
+ logoutIconClass = 'notOwner'
+ $('footer > #security').append ""
$('footer > #security > #logout').click (e) ->
e.preventDefault()
myInit = {
diff --git a/client/style.css b/client/style.css
index 66809b9..01daf55 100644
--- a/client/style.css
+++ b/client/style.css
@@ -8,6 +8,6 @@
color: floralwhite;
}
-#isOwner {
- color: green;
+.notOwner {
+ transform: rotate(20deg);
}
diff --git a/server/social.coffee b/server/social.coffee
index 961aea3..98ca066 100644
--- a/server/social.coffee
+++ b/server/social.coffee
@@ -133,6 +133,7 @@ module.exports = exports = (log, loga, argv) ->
else
try
idProvider = _.head(_.keys(req.session.passport.user))
+ console.log 'idProvider: ', idProvider
switch idProvider
when 'github', 'google', 'twitter'
if _.isEqual(owner[idProvider].id, req.session.passport.user[idProvider].id)