I agree about the fact that the patch is dirty, regarding the semantic.

But the UI works properly.

The tempate use $hasCreatePage to determine if the user has the right ti create a page in the space.

And $hasCreatePage is defined by:

```#set ($hasCreatePage = $xwiki.hasAccessLevel('edit', $services.model.serialize($reservedDocumentReference))```

And :
```
#set ($reservedDocumentName = 'DocumentReservedForInternalXWikiUsageMK9DxecV0XcDGnIeqzNDB4K')
#set ($reservedDocumentReference = $services.model.createDocumentReference($doc.wiki, $doc.space, $reservedDocumentName))
```

So the UI works.