Hello,
I would like to remove the permission for users to create pages at the top level (navigation panel). Users should only be able to create pages on the pages for which they are authorized to create pages and not “main pages”.
Does anyone have a solution for my Problem? Thank you
You should be able to deny the creation right from your user group at the wiki level, and allow it on some pages and their children using their own set of rights settings.
See XWiki documentation: access rights. The screenshot on there are a bit old but it should have all the info you need to solve your use case 
Have a good day,
Lucas C.
Thank you very much for your quick responds.
There was one wrong hook in the configuration 
So this topic can be closed