Disable groups and and repo management in the navigation menu for users that don't have permissions to view these pages.
Additionally, controls for creating, editing and deleting groups as well as the button for syncing and editing remotes should be disabled based on the users permissions.