From f928f6bd2c469bf54dfb02e793df13fc108be8ac Mon Sep 17 00:00:00 2001
From: uhensler <urs.hensler@frentix.com>
Date: Mon, 7 Oct 2019 10:05:49 +0200
Subject: [PATCH] OO-4285: Start courses for OpenOlat administrators as course
 owners

---
 .../repository/model/SingleRoleRepositoryEntrySecurity.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/repository/model/SingleRoleRepositoryEntrySecurity.java b/src/main/java/org/olat/repository/model/SingleRoleRepositoryEntrySecurity.java
index f97ca2bee35..e9380bd9875 100644
--- a/src/main/java/org/olat/repository/model/SingleRoleRepositoryEntrySecurity.java
+++ b/src/main/java/org/olat/repository/model/SingleRoleRepositoryEntrySecurity.java
@@ -45,9 +45,9 @@ public class SingleRoleRepositoryEntrySecurity implements RepositoryEntrySecurit
 	private Role getDefaultRole() {
 		if (wrappedSecurity.isParticipant()) {
 			return Role.participant;
-		} else if (wrappedSecurity.isCoach()) {
+		} else if (wrappedSecurity.isCoach() || wrappedSecurity.isMasterCoach()) {
 			return Role.coach;
-		} if (wrappedSecurity.isOwner()) {
+		} if (wrappedSecurity.isEntryAdmin() || wrappedSecurity.isPrincipal() || wrappedSecurity.isMasterCoach()) {
 			return Role.owner;
 		}
 		return Role.participant;
-- 
GitLab