From 532a82008f0842cd781dab6ea71659aa7859d4ec Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 11 Aug 2025 15:17:49 -0400 Subject: [PATCH] [docs] Allow pages to not use require_login --- docs/apis/subsystems/access.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/apis/subsystems/access.md b/docs/apis/subsystems/access.md index 28e85e6e54..22a00f0bcd 100644 --- a/docs/apis/subsystems/access.md +++ b/docs/apis/subsystems/access.md @@ -190,9 +190,9 @@ function is_viewing(context $context, $user = null, $withcapability = _) #### `require_login()` -Each plugin script should include require_login() or require_course_login() after setting up PAGE->url. +If using require_login() or require_course_login(), this should be used after setting PAGE->url. -This function does following: +These functions do the following: - it verifies that user is logged in before accessing any course or activities (not-logged-in users can not enter any courses). - user is logged in as gu