feat(docs): grant handbook access to authenticated users

This commit is contained in:
2026-07-21 20:48:34 +02:00
parent 901baf8352
commit be52b716ca
9 changed files with 38 additions and 11 deletions

View File

@@ -33,6 +33,18 @@ class FakePrincipal:
class DocsContextTests(unittest.TestCase):
def test_docs_reader_is_the_managed_authenticated_tenant_default(self) -> None:
manifest = get_docs_manifest()
roles = {template.slug: template for template in manifest.role_templates}
self.assertTrue(roles["docs_reader"].default_authenticated)
self.assertTrue(roles["docs_reader"].managed)
self.assertEqual(roles["docs_reader"].level, "tenant")
self.assertEqual(
roles["docs_reader"].permissions,
("docs:documentation:read",),
)
def test_topic_groups_preserve_layer_classification(self) -> None:
registry = PlatformRegistry()
registry.register(get_tenancy_manifest())