fixes #2779 - permission problem with non-admin adding puppetclasses to hosts and hostgroups