mirror of
https://github.com/fazo96/markcloud.git
synced 2025-01-10 11:04:21 +01:00
fix small bug
This commit is contained in:
parent
1879b974c1
commit
f43f3a1f0c
@ -162,8 +162,7 @@ Template.doc.owned = -> Meteor.user() and Meteor.user()._id is @owner
|
||||
Template.doc.privateUrl = ->
|
||||
Template.doc.ownerName = ->
|
||||
if Router.current().route.name is 'userDoc'
|
||||
console.log Router.current()
|
||||
return Router.current().params.owner
|
||||
return Router.current().params.user
|
||||
Template.doc.expirationDays = ->
|
||||
if @owner then return 'never'
|
||||
else return moment.unix(@dateCreated).add(7,'days').fromNow()
|
||||
|
Loading…
Reference in New Issue
Block a user