コード例 #1
0
ファイル: views.py プロジェクト: valorien/Open-Knesset
def post_annotation(request):
    if request.user.has_perm('annotatetext.add_annotation'):
        return annotatetext_post_annotation(request)
    else:
        return HttpResponseForbidden(_("Sorry, you do not have the permission to annotate."))
コード例 #2
0
ファイル: views.py プロジェクト: AsherBarak/Open-Knesset
def post_annotation(request):
    if request.user.has_perm('annotatetext.add_annotation'):
        return annotatetext_post_annotation(request)
    else:
        return HttpResponseForbidden(_("Sorry, you do not have the permission to annotate."))