canManageTitlesAndNames

This commit is contained in:
j 2014-11-04 12:36:27 +02:00
parent e1096ff395
commit 02333c2ad0
2 changed files with 5 additions and 2 deletions

View file

@ -13,8 +13,9 @@ from item import utils
import models import models
import tasks import tasks
from user.decorators import capability_required_json
@admin_required_json @capability_required_json('canManageTitlesAndNames')
def editName(request, data): def editName(request, data):
''' '''
takes { takes {

View file

@ -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 ox.django.api import actions
from item import utils from item import utils
from user.decorators import capability_required_json
import models import models
@admin_required_json
@capability_required_json('canManageTitlesAndNames')
def editTitle(request, data): def editTitle(request, data):
''' '''
takes { takes {