code: def index():
      
      identity = g.identity
      actions = {}
      for action in access.actions.values():
          actions[action.value] = DynamicPermission(action).allows(identity)
  
      if current_user.is_anonymous:
          return render_template("invenio_access/open.html",
                                 actions=actions,
                                 identity=identity)
      else:
          return render_template("invenio_access/limited.html",
                                 message='',
                                 actions=actions,
                                 identity=identity)
docs: Basic test view.