Skip to content
Snippets Groups Projects
Commit c2c5db73 authored by srosse's avatar srosse
Browse files

OO-4736: remove unset canView permission

parent 02d1141f
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,6 @@ public class BigBlueButtonRunController extends BasicController implements Activ ...@@ -69,7 +69,6 @@ public class BigBlueButtonRunController extends BasicController implements Activ
private final RepositoryEntry entry; private final RepositoryEntry entry;
private final BigBlueButtonMeetingDefaultConfiguration configuration; private final BigBlueButtonMeetingDefaultConfiguration configuration;
private boolean canView;
private boolean readOnly; private boolean readOnly;
private boolean moderator; private boolean moderator;
private boolean administrator; private boolean administrator;
...@@ -134,11 +133,9 @@ public class BigBlueButtonRunController extends BasicController implements Activ ...@@ -134,11 +133,9 @@ public class BigBlueButtonRunController extends BasicController implements Activ
String type = entries.get(0).getOLATResourceable().getResourceableTypeName(); String type = entries.get(0).getOLATResourceable().getResourceableTypeName();
if("Meetings".equalsIgnoreCase(type)) { if("Meetings".equalsIgnoreCase(type)) {
if(canView) { doOpenMeetings(ureq);
doOpenMeetings(ureq); if(segmentView != null) {
if(segmentView != null) { segmentView.select(meetingsLink);
segmentView.select(meetingsLink);
}
} }
} else if("Administration".equalsIgnoreCase(type)) { } else if("Administration".equalsIgnoreCase(type)) {
if(administrator) { if(administrator) {
...@@ -148,15 +145,13 @@ public class BigBlueButtonRunController extends BasicController implements Activ ...@@ -148,15 +145,13 @@ public class BigBlueButtonRunController extends BasicController implements Activ
} }
} }
} else if("Meeting".equalsIgnoreCase(type)) { } else if("Meeting".equalsIgnoreCase(type)) {
if(canView) { doOpenMeetings(ureq);
doOpenMeetings(ureq); if(segmentView != null) {
if(segmentView != null) { segmentView.select(meetingsLink);
segmentView.select(meetingsLink); }
} Long meetingKey = entries.get(0).getOLATResourceable().getResourceableId();
Long meetingKey = entries.get(0).getOLATResourceable().getResourceableId(); if(meetingsCtrl.hasMeetingByKey(meetingKey)) {
if(meetingsCtrl.hasMeetingByKey(meetingKey)) { doSelectMeeting(ureq, meetingsCtrl.getMeetingByKey(meetingKey));
doSelectMeeting(ureq, meetingsCtrl.getMeetingByKey(meetingKey));
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment