Skip to content
Snippets Groups Projects
Commit 43774a59 authored by magicfelix's avatar magicfelix
Browse files

Reformat

parent 27d8f0dd
1 merge request!350Resolve "Add simple course book list"
Pipeline #181010 failed
......@@ -42,8 +42,7 @@ import PersonChip from "aleksis.core/components/person/PersonChip.vue";
<subject-chip
v-if="
documentation?.amends?.amends?.subject &&
documentation.amends.amends.subject.id !==
documentation.subject.id
documentation.amends.amends.subject.id !== documentation.subject.id
"
:subject="documentation.amends.amends.subject"
v-bind="compact ? dialogActivator.attrs : {}"
......
......@@ -391,10 +391,7 @@ def is_documentation_teacher(user: User, obj: Documentation):
if not str(obj.pk).startswith("DUMMY") and hasattr(obj, "teachers"):
teachers = obj.teachers
elif obj.amends.amends:
if obj.amends.teachers:
teachers = obj.amends.teachers
else:
teachers = obj.amends.amends.teachers
teachers = obj.amends.teachers if obj.amends.teachers else obj.amends.amends.teachers
else:
teachers = obj.amends.teachers
return user.person in teachers.all()
......
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