Skip to content
Snippets Groups Projects
Commit e1e2aeed authored by michael.minelli's avatar michael.minelli
Browse files

AssignmentRoute => Change correction visibility to internal

parent a390962b
No related branches found
No related tags found
No related merge requests found
Pipeline #29760 passed
......@@ -221,6 +221,10 @@ class AssignmentRoutes implements RoutesManager {
const lastCommit = await GitlabManager.getRepositoryLastCommit(req.boundParams.exercise!.gitlabId);
if ( lastCommit ) {
if ( !isUpdate ) {
await GitlabManager.changeRepositoryVisibility(req.boundParams.assignment.gitlabId, GitlabVisibility.INTERNAL);
}
await db.exercise.update({
where: {
id: req.boundParams.exercise!.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment