hasGroupPermission Fixed

Fixed small bug with hasGroupPermission.