Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
779 views

currentUser: Impossible to invoke a method ("isInGroup") on a null variable

I couldn't find this anywhere else, I'm looking up if the currentUser.isInGroup('verified') and if not, display another link. Works fine when logged in but throws a Template and Runtime error when ...
Rob's user avatar
  • 865
0 votes
1 answer
181 views

Save Group Permissions

I'm trying to programmatically set group permissions. I came across the method saveGroupPermissions(). According to the documentation all you have to do is pass in the group ID and then an array of ...
Matt V's user avatar
  • 491