mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00

Gets rid of AccountController in favor of UserEditController, which shows data consistently for both admins and owners. Also, makes sure that only authorized users can see the page.
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
Template[getTemplate('userMenu')].helpers({
|
|
isLoggedIn: function () {
|
|
return !!Meteor.user();
|
|
},
|
|
name: function () {
|
|
return getDisplayName(Meteor.user());
|
|
},
|
|
profileUrl: function () {
|
|
return getProfileUrl(Meteor.user());
|
|
},
|
|
userEditUrl: function () {
|
|
return Router.routes['user_edit'].path(Meteor.user());
|
|
}
|
|
});
|