Would you like to know that how to add/remove permissions for a user/group or
how to include permissions in your own XF addon?
(Because you are posting in the XenForo Development Discussions forum)
You can sort of cheat and use the syntax below for permissions. Assuming you are wanting to restrict the view of something, or however you want to configure it. ufk prefix is just so its unique as the id's have to be.
Admin -> Development -> Permissions -> Permission Definitions -> New Permission Group
Permission Group ID: ufkGeneral
Title: UFK Permissions
Add-on: (Not needed)
Admin -> Development -> Permissions -> Permission Definitions -> New Interface Group
Interface Group ID: ukfGeneralPermissions
Title: UFK General Permissions
Add-on: (Not Need)
Admin -> Development -> Permissions -> Permission Definitions -> New Permission
Permission ID: canViewStuff
Title: Can view stuff
Permission Group: ufkGeneral
Depends on Permission ID: (Can leave blank)
Permission Type: Flag
Interface Group ID: ukfGeneralPermissions
Add-on: (Not needed)
Then you can use this syntax in a template:
Code:
<xen:if is="{$visitor.permissions.ukfGeneralPermissions.canViewStuff}">
Some code stuff...
</xen:if>