I got Extra permission installed and working as it should. Now I'm trying to make it so only members of certain usergroups can see other forum member’s profiles. I applied this mod to profile.php and it seemed to work, until someone goes to register to my forum and gets the Not Authorised screen. Another thing is users that are not in the special usergroup can not get into there own profile to change it.
How would I go about restricting viewing of profiles to one Usergroup with this mod?

