Permalink
Browse files

Update findAlertsByResource() to account for PermissionException.

  • Loading branch information...
1 parent a908674 commit 9db95529f01d44c456041e8ec305e4c421fa440f Ryan Morgan committed Jul 8, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 hqu/hqapi1/app/AlertController.groovy
@@ -189,6 +189,8 @@ public class AlertController extends ApiController {
failureXml = getFailureXML(ErrorCode.INVALID_PARAMETERS,
"Invalid severity " + sev)
+ } catch (PermissionException e) {
+ // User cannot see this resource, continue with emtpy list
} catch (Throwable t) {
failureXml = getFailureXML(ErrorCode.UNEXPECTED_ERROR,
t.getMessage())

0 comments on commit 9db9552

Please sign in to comment.