PDA

View Full Version : Custom permission in template


Cadellin
08-13-2011, 12:22 PM
I've been using custom permissions for a while in PHP but never found out how to use them in a template. It is possible or do I need to pass a variable from the PHP?

Thanks in advance

kh99
08-13-2011, 01:28 PM
I'm not sure exactly what you mean by custom permissions, but in templates you can only check variables that have been registered in the template. So I guess it depends on what you're checking to determine the permission.

Cadellin
08-13-2011, 01:34 PM
Thank you for the reply kh99 When I say permissions I mean usergroup permissions like in this article (https://vborg.vbsupport.ru/showthread.php?t=82844)

Up until now I have being doing it just as you describe but I can't help feeling that's not the way it should be done.