isRegistered or inGroup

Permalink
It should probably be noted that "Registered Users" aren't added to the "UserGroups" table in the database which the $u->inGroup(Group $g) function checks solely against, therefore even if a user is a member of the "Registered Users" group, if you try to check if a user is registered using that function it will return false.

Use isRegistered to check if a user is in the "Registered Users" group.