Fixed voter. Using getClassPermissions now.
Moved PermissionVoter to ClassPermissionVoter