Description
Usage example:
{{permission types="view,edit,admin"}} something {{/permission}}
Features:
- Ability to specify one or several permissions
For example the following that we currently have:
{{velocity wiki="true"}} #if($hasEdit) You can use the [[Sandbox space>>Sandbox.WebHome]] to try out your wiki's features. #end {{/velocity}}
would get replaced by:
{{permission types="edit"}} You can use the [[Sandbox space>>Sandbox.WebHome]] to try out your wiki's features. {{/permission}}
The idea is to make it nicer and cleaner for simple users to use advanced features (including the ability to add this macro from the WYSIWYG editor).
Note: We should not add too many options since we don't want to replace the scripting way. The idea is just to find the most common use cases and provide an easy way for simple users to use it.