views.py 370 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
from django.conf import settings
from django.http import HttpResponse
import json

from backend.permissions.obj_moderation_permission import OBJ_MODERATION_PERMISSIONS


def app_moderation_status(request):
    return HttpResponse(json.dumps({
        'activated': settings.MODERATION_ACTIVATED,
        'moderator_level': OBJ_MODERATION_PERMISSIONS["moderator"]
    }))