views.py 392 Bytes
Newer Older
1 2 3 4
from django.conf import settings
from django.http import HttpResponse
import json

5
from shared import OBJ_MODERATION_PERMISSIONS
6 7 8


def app_moderation_status(request):
9 10 11 12 13 14 15 16
    return HttpResponse(
        json.dumps(
            {
                "activated": settings.MODERATION_ACTIVATED,
                "moderator_level": OBJ_MODERATION_PERMISSIONS["moderator"],
            }
        )
    )