$page


Built-in Methods Reference

$page->viewable()

Introduced in Version 2.0

Description

Is the page viewable by the current user? Returns true or false. Note that this is only useful on pages other than the current page being viewed, as ProcessWire won't let the user load a page (by URL) that they don't have access to view.

Post Comment