# Path: amivapi/settings.py
# DEPARTMENT_LIST = [
#     'itet',
#     'mavt',
#     'arch',
#     'baug',
#     'bsse',
#     'infk',
#     'matl',
#     'biol',
#     'chab',
#     'math',
#     'phys',
#     'erdw',
#     'usys',
#     'hest',
#     'mtec',
#     'gess'
# ]
# 
# Path: amivapi/studydocs/authorization.py
# class StudydocsAuth(AmivTokenAuth):
#     def has_item_write_permission(self, user_id, item):
#         return str(get_id(item['uploader'])) == user_id
# 
#     def has_resource_write_permission(self, user_id):
#         # All users can create studydocs
#         return True


from amivapi.settings import DEPARTMENT_LIST
from .authorization import StudydocsAuth
        Prof. Okay: 5
        ...
    lecture:
        ...
    ...
```

The summary is only computed for documents matching the current `where` query,
e.g. when searching for ITET documents, only professors related to ITET
documents will show up in the summary.
""")


class StudyDocValidator(object):
    """Custom Validator to register `allow_summary` property."""

    def _validate_allow_summary(self, *args, **kwargs):
        """{'type': 'boolean'}"""


studydocdomain = {
    'studydocuments': {
        'resource_title': "Study Documents",
        'item_title': "Study Document",

        'description': description,

        'resource_methods': ['GET', 'POST'],
        'item_methods': ['GET', 'PATCH', 'DELETE'],


# Path: amivapi/settings.py
# DEPARTMENT_LIST = [
#     'itet',
#     'mavt',
#     'arch',
#     'baug',
#     'bsse',
#     'infk',
#     'matl',
#     'biol',
#     'chab',
#     'math',
#     'phys',
#     'erdw',
#     'usys',
#     'hest',
#     'mtec',
#     'gess'
# ]
# 
# Path: amivapi/studydocs/authorization.py
# class StudydocsAuth(AmivTokenAuth):
#     def has_item_write_permission(self, user_id, item):
#         return str(get_id(item['uploader'])) == user_id
# 
#     def has_resource_write_permission(self, user_id):
#         # All users can create studydocs
#         return True


# Path: amivapi/studydocs/model.py
from amivapi.settings import DEPARTMENT_LIST
from .authorization import StudydocsAuth

        Prof. Okay: 5
        ...
    lecture:
        ...
    ...
```

The summary is only computed for documents matching the current `where` query,
e.g. when searching for ITET documents, only professors related to ITET
documents will show up in the summary.
""")


class StudyDocValidator(object):
    """Custom Validator to register `allow_summary` property."""

    def _validate_allow_summary(self, *args, **kwargs):
        """{'type': 'boolean'}"""


studydocdomain = {
    'studydocuments': {
        'resource_title': "Study Documents",
        'item_title': "Study Document",

        'description': description,

        'resource_methods': ['GET', 'POST'],
        'item_methods': ['GET', 'PATCH', 'DELETE'],


        'authentication': StudydocsAuth,