From 02333c2ad0fb21104d08e033c8e08e2757992789 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 4 Nov 2014 12:36:27 +0200 Subject: [PATCH] canManageTitlesAndNames --- pandora/person/views.py | 3 ++- pandora/title/views.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pandora/person/views.py b/pandora/person/views.py index 89ff08b71..099cb77a6 100644 --- a/pandora/person/views.py +++ b/pandora/person/views.py @@ -13,8 +13,9 @@ from item import utils import models import tasks +from user.decorators import capability_required_json -@admin_required_json +@capability_required_json('canManageTitlesAndNames') def editName(request, data): ''' takes { diff --git a/pandora/title/views.py b/pandora/title/views.py index 0baf6b27a..fa1c28678 100644 --- a/pandora/title/views.py +++ b/pandora/title/views.py @@ -11,10 +11,12 @@ from ox.django.shortcuts import render_to_json_response, get_object_or_404_json, from ox.django.api import actions from item import utils +from user.decorators import capability_required_json import models -@admin_required_json + +@capability_required_json('canManageTitlesAndNames') def editTitle(request, data): ''' takes {