Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/apis/subsystems/access.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line appears to be incomplete or truncated. The sentence 'user is logged in as gu' doesn't provide clear information about what 'gu' represents or complete the thought.

Suggested change
- user is logged in as gu
- if the user is not enrolled, they may be logged in as a guest user (if allowed)

Copilot uses AI. Check for mistakes.

Expand Down