Skip to content

Commit d3eb4a2

Browse files
authored
changing priotection of role function to match others
1 parent 1ffcec3 commit d3eb4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private function attempt_jwt_login() {
237237
*
238238
* If either of these are not present, then the user will be able to log in.
239239
*/
240-
function doesPayloadSatisfyRoleRequirement($payload) {
240+
private function doesPayloadSatisfyRoleRequirement($payload) {
241241

242242
$checkForRole = getenv('MOODLE_JWT_USE_ROLE_CHECK');
243243
$roleField = getenv('MOODLE_JWT_ROLE_FIELD');

0 commit comments

Comments
 (0)