Skip to content

Commit 532a820

Browse files
authored
[docs] Allow pages to not use require_login
1 parent bbd881f commit 532a820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/apis/subsystems/access.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ function is_viewing(context $context, $user = null, $withcapability = _)
190190

191191
#### `require_login()`
192192

193-
Each plugin script should include require_login() or require_course_login() after setting up PAGE->url.
193+
If using require_login() or require_course_login(), this should be used after setting PAGE->url.
194194

195-
This function does following:
195+
These functions do the following:
196196

197197
- it verifies that user is logged in before accessing any course or activities (not-logged-in users can not enter any courses).
198198
- user is logged in as gu

0 commit comments

Comments
 (0)