Skip to content

Commit

Permalink
Remove anonymous role if video visibility is changed to internal (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis531 authored and tgloeggl committed Nov 25, 2024
1 parent 20f2bf3 commit 72d32ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Models/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ public static function filterACLs($acls, $studip_acls)

$possible_roles = array_column($studip_acls, 'role');

if (\Config::get()->OPENCAST_ALLOW_PUBLIC_SHARING) {
$possible_roles[] = 'ROLE_ANONYMOUS';
}

sort($acls);

$result = [];
Expand Down

0 comments on commit 72d32ae

Please sign in to comment.