can_create_topic_in

NAML documentation   Watch a video
   Usages of this macro
... in permissions.naml
182
183
184
185
186
187
188
189
190
191
<macro name="can_create_topic_in" requires="user" dot_parameter="node_attr">
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
 />
    <n.set_local_node
Macro
Parameters: node
.node_attr/>
    <n.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
            <condition1.not
Binary
Namespace: BasicNamespace
Parameters: condition
.local_user
Macro
Parameters: do
.is_banned
Binary
Namespace: UserNamespace
/>
            <condition2.local_user
Macro
Parameters: do
.has_permission
Binary
Namespace: UserNamespace
Parameters: node, permission_node, permission
 node="[n.local_node
Macro
Parameters: do
/]" permission_node="[n.local_node
Macro
Parameters: do
/]" permission="[n.create_topic_permission
Macro
/]" />
        </n.both>
    </n.block.>
</macro>