Skip to content

Playlist perm check should return highest course perm #1161

Closed
@dennis531

Description

@dennis531

Version
3.22-dev

Describe the bug
The playlist perm check returns the permission of the first found course. Instead, it should return the highest permission over all courses in the following code:

if (!$ret_perm) {
// check if user has read access through a linked course
foreach ($this->courses as $course) {
if ($course->getParticipantStatus($user->id)) {
return 'read';
}
if ($perm->have_studip_perm('dozent', $course->id)) {
return 'owner';
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:duplicatetype:bugv:3Everything related to the Stud.IP Opencast Plugin Version 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions