Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #1034, prevent warning #1074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes #1034, prevent warning #1074

wants to merge 1 commit into from

Conversation

tgloeggl
Copy link
Member

No description provided.

@tgloeggl tgloeggl added type:bug v:3 Everything related to the Stud.IP Opencast Plugin Version 3.x labels Nov 14, 2024
@tgloeggl tgloeggl added this to the Opencast 3.18 milestone Nov 14, 2024
dennis531
dennis531 previously approved these changes Nov 14, 2024
if (in_array($entry['role'], $possible_roles) === false) {
$result[] = $entry;

if (is_array($acl)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend adding this check to `updateAcl' after

public function updateAcl($new_vis = null)
{
$api_client = ApiEventsClient::getInstance($this->config_id);
$current_acl = $api_client->getAcl($this->episode);
to prevent the current acls from being overwritten if the current acls could not be fetched. If the fetch fails the update process should be aborted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug v:3 Everything related to the Stud.IP Opencast Plugin Version 3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants