Skip to content

Commit 74ed95b

Browse files
committed
fix access to videosm update translations
1 parent 52259c0 commit 74ed95b

File tree

5 files changed

+31
-1097
lines changed

5 files changed

+31
-1097
lines changed

lib/Models/Videos.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ private function getSeminarVisibility($cid, $playlist_id)
547547
*
548548
* @return string $perm the perm value
549549
*/
550-
public function getUserPerm($user_id = null)
550+
public function getUserPerm($user_id = null, $course_id = null)
551551
{
552552
global $user, $perm;
553553

@@ -559,6 +559,11 @@ public function getUserPerm($user_id = null)
559559
return 'owner';
560560
}
561561

562+
// check if user has permission on this video due to course ownership
563+
if ($this->haveCoursePerm('dozent')) {
564+
return 'owner';
565+
}
566+
562567
$ret_perm = false;
563568

564569
foreach ($this->perms as $uperm) {

locale/en/LC_MESSAGES/opencast.mo

841 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)