This commit is contained in:
j 2012-01-07 16:23:36 +05:30
parent dfcf20edae
commit 771cec5779

View file

@ -112,7 +112,7 @@ def editPage(request):
}
}
'''
if request.user.get_profile().capabilities('canEditSitePages'):
if request.user.get_profile().capability('canEditSitePages'):
data = json.loads(request.POST['data'])
page, created = models.Page.objects.get_or_create(name=data['name'])
page.body = data['body']