Didn't add permission as an if but added to the permissions class