Commit de37b65fbf601aba3ebadaa0e9d9aeeb3576322c
own profile editing only atm
mix irving committed on 8/27/2017, 11:28:56 PMParent: cf39375daad7bbcd8a42807ea1459802a41ee050
Files changed
app/page/userShow.js | changed |
app/page/userShow.js | ||
---|---|---|
@@ -78,9 +78,11 @@ | ||
78 | 78 | return h('Page -userShow', {title: name}, [ |
79 | 79 | h('div.container', [ |
80 | 80 | h('header', [ |
81 | 81 | h('h1', name), |
82 | - Link({ page: 'userEdit', feed }, h('i.fa.fa-pencil')) | |
82 | + feed === myId // Only expose own profile editing right now | |
83 | + ? Link({ page: 'userEdit', feed }, h('i.fa.fa-pencil')) | |
84 | + : '' | |
83 | 85 | ]), |
84 | 86 | api.about.html.image(feed), |
85 | 87 | feed !== myId |
86 | 88 | ? h('div.friendship', [ |
Built with git-ssb-web