Repository navigation
Commit d99afef
committed
One session-user reader and one docs page loader behind the search index
`SessionUser::fromSession()` is now the only place the AUTH_USER /
AUTH_COLLECTION pair is read. FileAccessManager, UploadAccessPolicy,
AccessManager, PersistentLoginService and cms.auth.isSuperAdmin() each
carried their own copy of the has/has/get/get dance and the
"non-empty id → isSuperAdmin" check. The collection may be empty (the
test harness and older sessions store '' for the default) and
AccessManager still substitutes the configured one.
bin/build-docs-index.php builds the search index through the same
DocsPageLoader and DocsMarkdownRenderer the admin viewer uses instead
of walking the tree, flattening menu.php and regex-stripping markdown
on its own; AdminTwigAdapter::docsMenu() delegates to the loader too,
so the menu has one reader instead of three. The rebuilt index no
longer starts every excerpt with the raw front matter, and pages
without an H1 take their front-matter title instead of the filename.1 parent 8505206 commit d99afef
18 files changed
Lines changed: 694 additions & 573 deletions
File tree
- bin
- resources
- docs
- src/Domain
- Auth/Service
- Docs/Service
- Session
- Twig/Adapter
- tests/Unit/Domain
- Auth/Service
- Docs
- Session
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
42 | 30 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 31 | + | |
51 | 32 | | |
52 | 33 | | |
53 | 34 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 35 | + | |
| 36 | + | |
64 | 37 | | |
65 | 38 | | |
66 | 39 | | |
67 | 40 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 41 | + | |
| 42 | + | |
73 | 43 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
79 | 49 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 50 | + | |
96 | 51 | | |
97 | 52 | | |
98 | 53 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments