Skip to content

Commit e1a2a77

Browse files
authored
Quick Fix for errors in OC Player when sharing videos via link (#1391)
1 parent b1d2ca2 commit e1a2a77

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/Routes/Opencast/UserRoles.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,8 @@ public function __invoke(Request $request, Response $response, $args)
5353
if (!empty($share_uuid)) {
5454
$video_share = VideosShares::findByUuid($share_uuid);
5555
if (!empty($video_share)) {
56-
if ($episode_id_role_access) {
57-
$roles[] = 'ROLE_EPISODE_' . $video_share->video->episode . '_READ';
58-
} else {
59-
$roles[] = $video_share->video->episode . '_read';
60-
}
56+
$roles[] = 'ROLE_EPISODE_' . $video_share->video->episode . '_READ';
57+
$roles[] = $video_share->video->episode . '_read';
6158
} else {
6259
throw new Error('Share not found', 404);
6360
}

0 commit comments

Comments
 (0)