Skip to content
Snippets Groups Projects
Commit 89ee046c authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #3340

Closes #3340

Merge request studip/studip!2450
parent 6b9dca39
No related branches found
No related tags found
No related merge requests found
...@@ -242,6 +242,7 @@ export default { ...@@ -242,6 +242,7 @@ export default {
relatedCourseMemberships: 'course-memberships/related', relatedCourseMemberships: 'course-memberships/related',
relatedCourseStatusGroups: 'status-groups/related', relatedCourseStatusGroups: 'status-groups/related',
relatedUser: 'users/related', relatedUser: 'users/related',
userId: 'userId',
}), }),
users() { users() {
const parent = { type: 'courses', id: this.context.id }; const parent = { type: 'courses', id: this.context.id };
...@@ -280,9 +281,9 @@ export default { ...@@ -280,9 +281,9 @@ export default {
if (Object.keys(this.users).length === 0 && this.users.constructor === Object) { if (Object.keys(this.users).length === 0 && this.users.constructor === Object) {
return []; return [];
} }
const currentUserId = this.userId;
let members = this.users.filter(function (user) { let members = this.users.filter(function (member) {
return user.perm === 'autor'; return member.perm === 'autor' && member.user_id !== currentUserId;
}); });
return members; return members;
......
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