Skip to content
Snippets Groups Projects
Commit 4b2cee56 authored by gnaegi's avatar gnaegi
Browse files

OO-3035 add run segment also for participants with admin role in gta course node

parent 8fcfea72
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ public class GTARunController extends BasicController implements Activateable2 {
RepositoryEntry entry = userCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
Membership membership = gtaManager.getMembership(getIdentity(), entry, gtaNode);
if(membership.isCoach() && membership.isParticipant()) {
if((membership.isCoach() && membership.isParticipant()) || (userCourseEnv.isAdmin() || membership.isParticipant())) {
mainVC = createVelocityContainer("run_segments");
segmentView = SegmentViewFactory.createSegmentView("segments", mainVC, this);
......
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