equal
deleted
inserted
replaced
363 |
363 |
364 # TODO(ljvderijk) Make this give a proper error message |
364 # TODO(ljvderijk) Make this give a proper error message |
365 deny(request) |
365 deny(request) |
366 |
366 |
367 def checkIsMyApplication(request): |
367 def checkIsMyApplication(request): |
368 """Returns an alternate HTTP response if this request is for a Notification belonging |
368 """Returns an alternate HTTP response if this request is for a Application belonging |
369 to the current user. |
369 to the current user. |
370 |
370 |
371 Args: |
371 Args: |
372 request: a Django HTTP request |
372 request: a Django HTTP request |
373 |
373 |
374 Raises: |
374 Raises: |
375 AccessViolationResponse: if the required authorization is not met |
375 AccessViolationResponse: if the required authorization is not met |
376 |
376 |
377 Returns: |
377 Returns: |
378 None if the current User is allowed to access this Notification. |
378 None if the current User is allowed to access this Application. |
379 """ |
379 """ |
380 |
380 |
381 try: |
381 try: |
382 # if the current user is a developer we allow access |
382 # if the current user is a developer we allow access |
383 checkIsDeveloper(request) |
383 checkIsDeveloper(request) |