Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
43774a59
Commit
43774a59
authored
11 months ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Reformat
parent
27d8f0dd
Loading
Loading
1 merge request
!350
Resolve "Add simple course book list"
Pipeline
#181010
failed
11 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
+1
-2
1 addition, 2 deletions
...components/coursebook/documentation/LessonInformation.vue
aleksis/apps/alsijil/util/predicates.py
+1
-4
1 addition, 4 deletions
aleksis/apps/alsijil/util/predicates.py
with
2 additions
and
6 deletions
aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
+
1
−
2
View file @
43774a59
...
...
@@ -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 :
{}"
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/util/predicates.py
+
1
−
4
View file @
43774a59
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment