code: def permission_allowed_actor_restrictions(
      datasette, actor, action, resource
  ):
      if actor is None:
          return None
      if "_r" not in actor:
          # No restrictions, so we have no opinion
          return None
      _r = actor.get("_r")
      if restrictions_allow_action(datasette, _r, action, resource):
          # Return None because we do not have an opinion here
          return None
      else:
          # Block this permission check
          return False
  
file_path: datasette/datasette/default_permissions.py
imports: from datasette import hookimpl, Permission
  from datasette.utils import actor_matches_allow
  import itsdangerous
  import time
  from typing import Union, Tuple
label_desc: Use image node_id 4 for calling a global function with example usage: permission_allowed_actor_restrictions(datasette, actor, action, resource) and returns: None, None, None, False