Addon Permissions

Matthew2D

Well-known member
Hello. I am having trouble making permissions for an addon. I already made the permission but I don't know what code to add to the addon template.

Thanks in advance.
 
For example:

Rich (BB code):
$visitor = XenForo_Visitor::getInstance();
$hasPerm = XenForo_Permission::hasPermission($visitor['permissions'], 'general', 'cleanSpam')

if ($hasPerm)
{
	// DO STUFF
}
 
Top Bottom