Permissions needed for Publishing in section
I found this question already asked, but not solved: https://answers.nuxeo.com/general/q/8308f961c17244919de03403bd559260/Publishing-rights-with-users-groups So I will ask it again. Given the section, which I gave an explicit permissions “Read” and “CanAskForPublishing” to a user (not to a group he is member of, to avoid groups issues), the user still can't publish to that location. According to the documentation (https://doc.nuxeo.com/userdoc/permissions/), that would be sufficient to submit a document for publishing. I must give Read/Write access to the section to let a user to publish into that section. Is the “CanAskForPublishing” right deprecated for LTS2019 and webui?
Hello,
I've reproduced the issue, and this is a bug. I've created a JIRA ticket to solve it https://jira.nuxeo.com/browse/NXP-29120. It looks like we are not checking for the right permissions in https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-publication/nuxeo-internal-publish.html#L213. If you want to walkaround the issue:
- Either use Edit permissions
- Or override the element
Regards
var hasPermission = this.hasPermission(this.publishSpace, 'AddChildren');
. What would be the correct string (permission name) here? Is it CanAskForPublishing
or anything else? Should I do any other corrections to override successfully? Thanks in advance!addChildren
property (linked to Write permission from https://explorer.nuxeo.com/nuxeo/site/distribution/server-10.10/viewExtensionPoint/org.nuxeo.ecm.core.security.SecurityService–permissions) to Read. Thinking about the way to update the current publication window, I might disable the default one, create a copy of the nuxeo-internal-publish.html element (rename it), update the line in error, then create a new button in the Document Actions slot.AddChildren
to CanAskForPublishing
be ok?