Login  Register

Re: change_permissions.naml

Posted by Pedro on Oct 26, 2012; 6:15pm
URL: https://support.nabble.com/change-permissions-naml-tp7581706p7581718.html

You can go to permission_rows macro.  This is the macro now:
 <override_macro name="permission_rows">
    <n.overridden />
    <n.permission_row
        permission ="[n.create_poll_permission/]"
        description="[t]Who can create polls.[/t]"
        anyone_cell =""
        administrators_cell ="true"
    />
</override_macro> 
The second line has the same role of the default macro, so you can replace( override ) it with the default macro edited, like this:
<override_macro name="permission_rows">
     <n.permission_row
        permission ="[n.view_permission/]"
        description="[t]Who can view this application and its contents[/t]"
        administrators_cell ="true"
        authors_cell ="true"
    />
    <n.permission_row
        permission ="[n.edit_app_permission/]"
        description="[t]Who can edit applications (e.g., change name, description, etc.)[/t]"
        authors_cell ="true"
    />
    <n.permission_row
        permission ="[n.create_topic_permission/]"
        description="[t]Who can create new topics under this application[/t]"
    />
    <n.permission_row
        permission ="[n.reply_permission/]"
        description="[t]Who can reply to messages posted under this application[/t]"
    />
    <n.permission_row
        permission ="[n.move_permission/]"
        description="[t]Who can move messages under other destinations (e.g., under other topics or sub-forums)[/t]"
    />
    <n.permission_row
        permission ="[n.create_sub_apps_permission/]"
        description="[t]Who can create sub applications (e.g., sub-forums, subcategories, etc.)[/t]"
    />
    <n.permission_row
        permission ="[n.change_post_date_permission/]"
        description="[t]Who can change the date and time of messages[/t]"
    />
    <n.permission_row
        permission ="[n.manage_subscribers_permission/]"
        description="[t]Who can manage subscribers of this application[/t]"
    />
    <n.permission_row
        permission ="[n.manage_pinned_topics_permission/]"
        description="[t]Who can pin/unpin topics in this application[/t]"
    />
    <n.permission_row
        permission ="[n.manage_locked_topics_permission/]"
        description="[t]Who can lock/unlock topics in this application[/t]"
    />
    <n.if.page_node.is_root>
        <then>
            <n.site_permission_row
                permission ="[n.manage_banned_users_permission/]"
                description="[t]Who can ban/unban users[/t]"
            />
        </then>
    </n.if.page_node.is_root>
    <n.permission_row
        permission ="[n.show_group_members_permission/]"
        description="[t]Which groups allow members to be listed[/t]"
        anyone_cell =""
        authors_cell =""
    />
    <n.permission_row
        permission ="[n.unrestricted_posting_permission/]"
        description="[t]Who can post any content without restriction (including javascript code, &lt;object&gt; and &lt;style&gt; tags, etc.). [b]Security Warning[/b]: Allow this option only for users that you really trust.[/t]"
        anyone_cell =""
        authors_cell =""
    />
    <n.permission_row
        permission ="[n.edit_all_permission/]"
        description="[t]Who can edit any content, both applications and posts.  Note: Please only use this feature in extreme circumstances.  Most users will not like having their posts edited by someone else.[/t]"
        authors_cell =""
        anyone_cell =""
        registered_cell =""
        members_cell =""
        other_groups_cell =""
    />
    <n.permission_row
        permission = "[n.create_poll_permission/]"
        description="[t]Who can create polls.[/t]"
        anyone_cell = ""
        administrators_cell = "true"
    />
</override_macro>
My test forum.