fix(taskactions): a person's own action no longer reads 'no authorising principal'; delegated ones say on whose behalf
This commit is contained in:
1 file changed
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user