code: async def permits(self, identity, permission, context=None):
          
          # pylint: disable=unused-argument
          user = self.user_map.get(identity)
          if not user:
              return False
          return permission in user.permissions
docs: Check user permissions.
          Return True if the identity is allowed the permission in the
          current context, else return False.