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