mesh/delivery-group group feat/sdk1 rejected: composed together: the checker's verdict at the members' heads (428d048dd50a): unit: git.novox.be/novox/mesh-sdk/…
mesh/delivery closed: a newer head of the same pull request
mesh/check failed: unit: git.novox.be/novox/mesh-sdk/go/process.TestStatePutWritesAKeyWhole: a Put through a short blackout: 0, mesh-mail's state send…
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
19 lines
593 B
Go
19 lines
593 B
Go
package catalogue
|
|
|
|
// RootNever is what a user resource's `root` says of an account that must never become root without a
|
|
// person (novox/hq ADR 0266); the node-engine judges it.
|
|
const RootNever = "never"
|
|
|
|
// accountHomeOf is where an account's home is: what was stored, or the derived default — /root for
|
|
// root, /home/<account> otherwise. The one place the default is written, so a fact and the store
|
|
// cannot disagree about it.
|
|
func accountHomeOf(account, home string) string {
|
|
if home != "" {
|
|
return home
|
|
}
|
|
if account == "root" {
|
|
return "/root"
|
|
}
|
|
return "/home/" + account
|
|
}
|