@@ -450,24 +450,24 @@ resource ConsoleSessionList {
450450has_relation (fleet: Fleet , "parent_fleet" , collection: ConsoleSessionList )
451451 if collection.fleet = fleet;
452452
453- # Allow silo admins to delete user sessions and list user tokens
454- resource SiloUserAuthnList {
453+ # Allow silo admins to delete and list user sessions
454+ resource SiloUserSessionList {
455455 permissions = [ "modify" , "list_children" ];
456456 relations = { parent_silo: Silo };
457457
458458 # A silo admin can modify (e.g., delete) a user's sessions.
459459 "modify" if "admin" on "parent_silo" ;
460460
461- # A silo admin can list a user's tokens and sessions.
461+ # A silo admin can list a user's sessions.
462462 "list_children" if "admin" on "parent_silo" ;
463463}
464- has_relation (silo: Silo , "parent_silo" , authn_list: SiloUserAuthnList )
464+ has_relation (silo: Silo , "parent_silo" , authn_list: SiloUserSessionList )
465465 if authn_list.silo_user.silo = silo;
466466
467- # give users 'modify' and 'list_children' on their own tokens and sessions
468- has_permission (actor: AuthenticatedActor , "modify" , authn_list: SiloUserAuthnList )
467+ # give users 'modify' and 'list_children' on their own sessions
468+ has_permission (actor: AuthenticatedActor , "modify" , authn_list: SiloUserSessionList )
469469 if actor.equals_silo_user(authn_list.silo_user);
470- has_permission (actor: AuthenticatedActor , "list_children" , authn_list: SiloUserAuthnList )
470+ has_permission (actor: AuthenticatedActor , "list_children" , authn_list: SiloUserSessionList )
471471 if actor.equals_silo_user(authn_list.silo_user);
472472
473473# Allow silo admins to delete and list user access tokens
0 commit comments