added groupid test for new users, typo, ->authorise needs component param
move getAuthorisedGroups
Display superadmin only if user is superadmin
Merge pull request #1284 from trob/juser

added groupId test for new users, typo, authorise needs component param