简体   繁体   中英

How can I set default permissions on new nodes in Gentics Mesh?

I'd like anonymous users to have 'read published' permission to all newly created nodes under a specific node.

I can grant permission to a node after it's created, but is there a way to specify the permission when creating? Or is there a way to make new nodes inherit their parent node permissions by default?

I don't see the options in the node API docs, but curious if there was an undocumented feature, or maybe I'm looking in the wrong place.

https://getmesh.io/docs/api/#project__nodes__post

All permissions (assigned role perms) of the parent node will automatically be inherited to the created children.

You can check the implementation here: https://github.com/gentics/mesh/blob/dev/core/src/main/java/com/gentics/mesh/core/data/root/impl/NodeRootImpl.java#L258

Please file an issue with steps to reproduce if you have the impression that this is not working as expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM