Forums / Cotonti / General / Usergroup specific block

Eugene
#36897 2013-01-28 11:45

Hello!

This global variable - $usr - is not containing info about user groups - just main group. That's because just maingroup is stored in users table of DB. All other groups stored in other table.

As I understand, all needed calculations for auth goes on the fly for specific user in specific part of Site.

I would suggest using LEVEL {PHP.usr.level} - at least i helped me, as I was filtering anyone LOWER that "elite" ))

Also, if just this group has ADMIN rights for this category - you just may filter them by

<!-- IF {PHP.usr.isadmin} -->

try.