Skip to content
Snippets Groups Projects

Fix "Access Denied" Bug

Files

+ 2
1
@@ -145,7 +145,8 @@ public class AuthorisationService {
* @return true if the authenticated person is a manager of a course
*/
public boolean isManagerOfAny() {
return isAdmin() || authApi.hasManagerRoleInAnyCourse(getAuthPerson().getId()).block();
return isAdmin() || isStaff()
|| authApi.hasTeacherRoleInAnyCurrentEdition(getAuthPerson().getId()).block();
}
/**
Loading