class ViewModel::AccessControl
def visible!(view, context:)
* on root views
valid to run:
checking is run directly on one node without any tree context, it's only
Wrappers to check access control for a single view directly. Because the
def visible!(view, context:) run_callback(ViewModel::Callbacks::Hook::BeforeVisit, view, context) run_callback(ViewModel::Callbacks::Hook::AfterVisit, view, context) end