Skip to content

Commit

Permalink
handle empty acls
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jul 4, 2024
1 parent 66f84d2 commit 9c9c7a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Models/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ public static function createACLsForCourses($course_ids)
*/
public static function filterACLs($acls)
{
if (!is_array($acls)) {
return [
'studip' => [],
'other' => []
];
}

$possible_roles = [
'ROLE_ANONYMOUS'
];
Expand Down

0 comments on commit 9c9c7a7

Please sign in to comment.