forked from 0x2620/pandora
canManageTitlesAndNames
This commit is contained in:
parent
e1096ff395
commit
02333c2ad0
2 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue