mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 18:43:46 +03:00
publish: only original author can edit notes
This commit is contained in:
parent
ec15d2dccb
commit
41ebaad86b
@ -138,12 +138,9 @@ export class Note extends Component {
|
||||
|
||||
let editPost = null;
|
||||
let editUrl = props.location.pathname + "/edit";
|
||||
if (notebook["writers-group-path"] in props.groups) {
|
||||
let writers = notebook["writers-group-path"];
|
||||
if (props.groups[writers].has(window.ship)) {
|
||||
if (`~${window.ship}` === author) {
|
||||
editPost =
|
||||
<Link className="green2 f9" to={editUrl}>Edit</Link>
|
||||
}
|
||||
}
|
||||
|
||||
let popout = (props.popout) ? "popout/" : "";
|
||||
|
Loading…
Reference in New Issue
Block a user