Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a ZCML snippet to ZMS-configure.zcml for publishing ZMI CSS/JS-resources.
Since zopefoundation/Zope#1166 general GUI resources are not public anymore but limited to the
ViewManagementScreensPermission
. If using bootstrap.css or fontawesome for the website-design, these resources can get accessed by changing its permisson by adding the path to a overrides.zcml for ZMS:overrides.zip
The
directory
-directive has to be adopted to the local installation path (this is not convenient!).A late Zope-PR zopefoundation/Zope#1204 may have removed the permission to any non-manage-user; thus the upper enhancement is not only needed for 3rd-view but for ZMSEditor etc. accessing ZMS-ZMI.
Actually this is a litle bit too complicated; any other ideas?
I doubt that adding the ViewManagementScreen-permission to the ZMS*-roles (except Subscriber) is a good solution, because the user should work in ZMS-ZMI and not Zope-ZMI.
ZMI Access Error
![image](https://private-user-images.githubusercontent.com/29705216/326415812-e81a54c6-94ad-4c2f-81dc-4d8f4b64cae2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzQ3OTMsIm5iZiI6MTczOTkzNDQ5MywicGF0aCI6Ii8yOTcwNTIxNi8zMjY0MTU4MTItZTgxYTU0YzYtOTRhZC00YzJmLTgxZGMtNGQ4ZjRiNjRjYWUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDAzMDgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlNmRjNjJlMTIyZTMzMGE3MDJlZDU4YWRhMzNmMTRmMTY5ZDViZmQ1NzQzMjE1OThlMGJhM2VmYTJhNjUzM2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.AqbUCe_sixiC9X3EbXdZfkcIu3OubzK20i5zWdpQS-4)