xf_phantom
Well-known member
Since we don't "need" to use template hooks anymore, it would be really cool if we could check the $visitor permissions in the template too.
Because of the missing template hook code, i would need to use the proxy class system to extend the controller to attach only
Would be nice to avoid the overhead and be able to check the permission direct in the template
Because of the missing template hook code, i would need to use the proxy class system to extend the controller to attach only
PHP:
$parentReturn->params['canViewFoo'] = XenForo_Visitor::getInstance()->hasPermission('my_addon','view');
Would be nice to avoid the overhead and be able to check the permission direct in the template
Upvote
0