forked from 0x2620/pandora
findChangeLogs is bound to canManageUsers
This commit is contained in:
parent
ed7c5b8a6d
commit
a1008f87c9
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ from ox.django.shortcuts import render_to_json_response, json_response
|
||||||
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
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ def order_query(qs, sort):
|
||||||
qs = qs.order_by(*order_by, nulls_last=True)
|
qs = qs.order_by(*order_by, nulls_last=True)
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
@admin_required_json
|
@capability_required_json('canManageUsers')
|
||||||
def findChangeLogs(request, data):
|
def findChangeLogs(request, data):
|
||||||
'''
|
'''
|
||||||
takes {
|
takes {
|
||||||
|
|
Loading…
Reference in a new issue