Fixing bugs on permission classes and authentication classes.