code: def check_auth(self):
          
          # access permissions
          if self.auth is not None:
              return self.auth(self.request)
  
          return self.public_readble, self.public_writable
docs: Check authentication/authorization of client