Skip to content
Snippets Groups Projects
Commit c4ccb64d authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add docstrings

parent ebd013b7
No related branches found
No related tags found
1 merge request!113Resolve "Review permissions"
Pipeline #10537 passed
......@@ -47,6 +47,7 @@ def get_substitution_by_id(request: HttpRequest, id_: int, week: int):
def get_teachers(user: User):
"""Get the teachers whose timetables are allowed to be seen by current user."""
checker = ObjectPermissionChecker(user)
teachers = (
......@@ -70,6 +71,7 @@ def get_teachers(user: User):
def get_classes(user: User):
"""Get the classes whose timetables are allowed to be seen by current user."""
checker = ObjectPermissionChecker(user)
classes = (
......@@ -103,6 +105,7 @@ def get_classes(user: User):
def get_rooms(user: User):
"""Get the rooms whose timetables are allowed to be seen by current user."""
checker = ObjectPermissionChecker(user)
rooms = (
......
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