Check authentication/authorization of client

def check_auth(self):
        """Check authentication/authorization of client"""
        # access permissions
        if self.auth is not None:
            return self.auth(self.request)

        return self.public_readble, self.public_writable