Skip to content

Commit

Permalink
fix bug where only stewards can create children
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jan 31, 2024
1 parent c74725f commit afbab04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/elements/how-unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class HowUnit extends ScopedElementsMixin(LitElement) {
} else {
state = unitInfo.state
}
if ( (state == SysState.UnderConstruction || state == SysState.Alive) && isSteward) {
if ( (state == SysState.UnderConstruction || state == SysState.Alive)) {
controlsHTML.push(html`
<svg-button
.click=${() => this.dispatchEvent(new CustomEvent('add-child', { detail: this.currentUnitEh, bubbles: true, composed: true }))}
Expand Down
2 changes: 1 addition & 1 deletion we_dev/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"source": {
"type": "localhost",
"happPath": "./workdir/how.happ",
"happPath": "/home/eric/code/metacurrency/holochain/how/workdir/how.happ",
"uiPort": 8888
}
},
Expand Down

0 comments on commit afbab04

Please sign in to comment.