System:Bootstrap:requireLogin

From Aspen Documentation

Returns whether or not login is required for the current interface application. Uses the USER_AUTH_(LOADING_SECTION) constant if it's defined.

Since 1.0

Arguments

void requireLogin ()

Returns

Returns boolean.

Examples

For example, in the default demo application "admin" we set LOADING_SECTION to "admin". Therefore, if USER_AUTH_ADMIN is true and we call this function from with *_Admin code it will return true.

$this->APP->requireLogin();