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 {