docs: def permitted_actions(self, obj=None):
          """Determine permitted actions for a given object pattern.
  
          """
          return [a for a in Action.registered
                  if self.allow(a, obj(str(a)) if obj is not None else None)]