Skip to content

Commit

Permalink
bugfix when create app namespace jump to permission page
Browse files Browse the repository at this point in the history
  • Loading branch information
lepdou committed Jul 8, 2016
1 parent ff15667 commit a93ec78
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -80,7 +80,7 @@ public ResponseEntity<Void> createNamespace(@PathVariable String appId,

@PreAuthorize(value = "@permissionValidator.hasCreateAppNamespacePermission(#appId, #appNamespace)")
@RequestMapping(value = "/apps/{appId}/appnamespaces", method = RequestMethod.POST)
public void createAppNamespace(@PathVariable String appId, @RequestBody AppNamespace appNamespace) {
public AppNamespace createAppNamespace(@PathVariable String appId, @RequestBody AppNamespace appNamespace) {

checkArgument(appNamespace.getAppId(), appNamespace.getName());
if (!InputValidator.isValidAppNamespace(appNamespace.getName())) {
Expand All @@ -106,6 +106,7 @@ public void createAppNamespace(@PathVariable String appId, @RequestBody AppNames

publisher.publishEvent(new AppNamespaceCreationEvent(createdAppNamespace));

return createdAppNamespace;
}

@RequestMapping("/apps/{appId}/envs/{env}/clusters/{clusterName}/namespaces")
Expand Down

0 comments on commit a93ec78

Please sign in to comment.