Skip to content
Snippets Groups Projects
Commit 10c2a1fe authored by gnaegi's avatar gnaegi
Browse files

OO-200 add admin role for course admins

parent 4c5aa051
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,8 @@ public class LTIRunController extends BasicController { ...@@ -274,7 +274,8 @@ public class LTIRunController extends BasicController {
if (coach) { if (coach) {
rolesStr.append(",").append("Instructor"); rolesStr.append(",").append("Instructor");
} }
if (roles.isOLATAdmin()) { boolean admin = courseEnv.getCourseGroupManager().isIdentityCourseAdministrator(getIdentity());
if (roles.isOLATAdmin() || admin) {
rolesStr.append(",").append("Administrator"); rolesStr.append(",").append("Administrator");
} }
} }
......
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