fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodanie brakujÄ…cego skompilowanego locale.
[redakcja.git]
/
apps
/
api
/
handlers
/
manage_handlers.py
diff --git
a/apps/api/handlers/manage_handlers.py
b/apps/api/handlers/manage_handlers.py
index
5905724
..
df32b8b
100644
(file)
--- a/
apps/api/handlers/manage_handlers.py
+++ b/
apps/api/handlers/manage_handlers.py
@@
-18,7
+18,7
@@
class PullRequestListHandler(BaseHandler):
allowed_methods = ('GET',)
def read(self, request):
allowed_methods = ('GET',)
def read(self, request):
- if request.user.has_perm('
api.pullrequest.can_change
'):
+ if request.user.has_perm('
change_pullrequest
'):
return PullRequest.objects.all()
else:
return PullRequest.objects.filter(commiter=request.user)
return PullRequest.objects.all()
else:
return PullRequest.objects.filter(commiter=request.user)
@@
-33,7
+33,7
@@
class PullRequestHandler(BaseHandler):
def update(self, request, prq_id):
"""Change the status of request"""
def update(self, request, prq_id):
"""Change the status of request"""
- if not request.user.has_perm('
api.pullrequest.can_change
'):
+ if not request.user.has_perm('
change_pullrequest
'):
return AccessDenied().django_response("Insufficient priviliges")
prq = PullRequest.objects.get(id=prq_id)
return AccessDenied().django_response("Insufficient priviliges")
prq = PullRequest.objects.get(id=prq_id)