-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some body tags to determine permission needed and roles needed to view #50
Conversation
Sorry, about to get on plane. If you only need to check a few permissions,
|
@tomgross I've removed the tags about roles required. Seems permission required for a view is normally enough to differentiate backend vs frontend. I guess I was thinking that something that requires an additional permission could then be themed differently. Perhaps thats where the roles required tags I deleted might have been useful, where you could theme in elements specific to reviewers for example? |
Simple is often better. All these things related to permissions might be a bit difficult for themers to fully get. I am a bit worried about revealing this data publicly. Is this something we should worry about at all? |
You have to have the permission to see it so its not revealing much. The On Tue, 8 Sep 2015 20:39 Nathan Van Gheem [email protected] wrote:
|
@vangheem so based on the other thread you seem to be proposing I change it so you would add the following in your custom there.
or should it be |
Looks fine. |
add some body tags to determine permission needed and roles needed to view
Can you add a changelog please? Don't bother with a PR for it. |
Oops, this didn't have a test run attached with it. I'll watch jenkins and revert if there is a problem. |
It causes a test failure in plone.app.portlets: |
oh, I may see the problem, giving it a quick try now |
yes, "getattr(view, 'ac_permissions')" should be "getattr(view, 'ac_permissions', None)" Want me to make the change? |
Done. c29e1cb |
thank you. |
Add preview for thumbnail on @@theming-controlpanel. Fixes #49.
The goal is plone/Products.CMFPlone#465, which is make it easy for a themer to theme the backend separate from the frontend while still using the toolbar.
I'm not sure the viewrole- ones are needed (or desired for security reasons). Maybe it should just say be restricted to viewrole-anonymous?
I think with this change a seperated theme could be as simple as
Also, need some advice on the best way to implement this. Seems a bit hacky.