From d3eb4a270cbf9ab510fdd12c573d520c3a2cfbd1 Mon Sep 17 00:00:00 2001 From: Trey Hayden <33755714+vbhayden@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:37:54 -0400 Subject: [PATCH] changing priotection of role function to match others --- auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 7d9da3e..2f0d046 100755 --- a/auth.php +++ b/auth.php @@ -237,7 +237,7 @@ private function attempt_jwt_login() { * * If either of these are not present, then the user will be able to log in. */ - function doesPayloadSatisfyRoleRequirement($payload) { + private function doesPayloadSatisfyRoleRequirement($payload) { $checkForRole = getenv('MOODLE_JWT_USE_ROLE_CHECK'); $roleField = getenv('MOODLE_JWT_ROLE_FIELD');