You gotta define an condition
if ($vars['user']->isAdmin())
Condition to make the group creation link as well as the page visible only to the admins. Other users would be redirected even if the manually hit the link of the page to create new groups.
Thank you for the quick reply, if only I could get my head around the structure of this thing.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.