few changes after testing the gateway

revert-70aa11f8
ayyoob 8 years ago
parent 671d931d3e
commit 44d09e09ea

@ -253,7 +253,12 @@ public class AnnotationProcessor {
this.setPermission(annotations[i], permission); this.setPermission(annotations[i], permission);
} }
} }
permissions.add(permission); if (permission.getName() == null || permission.getPath() == null) {
log.warn("Permission not assigned to the resource url - " + permission.getMethod() + ":"
+ permission.getUrl());
} else {
permissions.add(permission);
}
} }
} }
return permissions; return permissions;

Loading…
Cancel
Save