Skip to content

Wagtail hooks

hypha.apply.review.wagtail_hooks

register_permissions

register_permissions()
Source code in hypha/apply/review/wagtail_hooks.py
@hooks.register("register_permissions")
def register_permissions():
    return Permission.objects.filter(
        content_type__app_label="review",
        codename__in=["add_review", "change_review", "delete_review"],
    )