2022-12-18 23:53:28 +00:00
|
|
|
from django.shortcuts import render
|
|
|
|
from django.utils.translation import gettext as _
|
2022-12-19 00:22:08 +00:00
|
|
|
from django.http import HttpResponseForbidden
|
2022-12-18 23:53:28 +00:00
|
|
|
|
|
|
|
def resolver(request):
|
2022-12-19 00:22:08 +00:00
|
|
|
if request.user.is_superuser:
|
|
|
|
return render(
|
|
|
|
request,
|
|
|
|
"resolver/resolver.html",
|
|
|
|
{
|
|
|
|
"title": _("Resolver"),
|
|
|
|
},
|
|
|
|
)
|
|
|
|
return HttpResponseForbidden()
|
|
|
|
|