can_manage_users_and_groups

NAML documentation   Watch a video
   Usages of this macro
... in can_manage_users_and_groups.naml
1
2
3
4
5
6
<override_macro name="can_manage_users_and_groups" requires="user">  
        <n.either
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>  
        <condition1.is_site_admin
Macro
Requires: user
/>  
        <condition2.is_in_group
Binary
Namespace: UserNamespace
Parameters: group
 group="NewsAdmin" />  
    </n.either>  
</override_macro>
Overrides default macro
... in permissions.naml
264
265
266
<macro name="can_manage_users_and_groups" requires="user">
    <n.is_site_admin/>
</macro>