I'm having a huge issue with getting mine to work. I'm sure it is due to me being a Super Admin but I'm trying to figure out why the following codes won't work.
$canManage = $visitor->hasAdminPermission('xfpoints_manage_points');
$canManage = $visitor->hasAdminPermission('xfPoints', 'xfpoints_manage_points');
Trying to use it in admin templates and I really hope it is because I'm a Super Admin, which I'm going to test now.