17 lines
397 B
JavaScript
17 lines
397 B
JavaScript
|
|
/**
|
||
|
|
* AP0.6: Kein GET /api/actors im Backend.
|
||
|
|
* Actor-Zuweisung nutzt TenantContext (aktueller Human Actor).
|
||
|
|
* Siehe Abschlussbericht AP0.6 §9.
|
||
|
|
*/
|
||
|
|
|
||
|
|
export function actorsFromContext(context) {
|
||
|
|
if (!context?.actor?.id) return []
|
||
|
|
return [
|
||
|
|
{
|
||
|
|
id: context.actor.id,
|
||
|
|
name: context.display_name || 'Aktueller Actor',
|
||
|
|
actor_type: context.actor.type || 'human',
|
||
|
|
},
|
||
|
|
]
|
||
|
|
}
|