fix(taskactions): a person's own action no longer reads 'no authorising principal'; delegated ones say on whose behalf

This commit is contained in:
sam committed 2026-11-15 00:04:06 +11:00
1 parent e78cb1e63e
commit 7a311a3c74
1 file changed
+4 -2
+4 -2
View File
@@ -135,10 +135,12 @@ func (a Actor) describe(verb string) string {
if a.Kind != "" {
text += " (" + string(a.Kind) + ")"
}
// A person acting for themselves has no principal; only delegated actions
// say whose authority they used.
if a.Principal != "" {
return text + ", authorised by " + string(a.Principal)
return text + " on behalf of " + string(a.Principal)
}
return text + ", no authorising principal"
return text
}
// approvedKind and rejectedKind name what happened and who did it. There is no