Login  Register

Re: Users, Groups and Permissions

Posted by Hugo <Nabble> on Sep 28, 2010; 5:14am
URL: https://support.nabble.com/Users-Groups-and-Permissions-tp5568913p5577982.html

This permission is defined in the Nabble template language, which is still under development. In the near future users will be able to change templates and redefine whatever they want. So what you want to do will be possible when we release templates.

At this point, deletion is defined like this:
<macro name="can_delete" requires="user" dot-attribute="node-attr">
	<n.owns.node-attr/>
</macro>

<macro name="can_delete_recursively" requires="user" dot-attribute="node">
	<n.is_site_admin/>
</macro>
In other words, can_delete returns true if the user owns the node. The second macro says: can_delete_recursively (e.g., can delete the whole branch) returns true if the user is an administrator of the site (root forum/blog/gallery/etc.). Templates will have good documentation, so don't worry about the syntax right now.