Skip to content

Commit

Permalink
Sharing project causes 503 (#4455)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigglesandginger authored Aug 14, 2024
1 parent 82b567a commit da6f3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const projectMenuItems = computed(() => {
items.push(renameMenuItem, shareMenuItem, separatorMenuItem, removeMenuItem);
}
if (props.project?.userPermission === 'writer') {
items.push(renameMenuItem, shareMenuItem);
items.push(renameMenuItem);
}
return items;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,10 @@ public ResponseEntity<JsonNode> makeProjectPublic(
projectPermissionsService.removeProjectPermissions(project, who, relationship);
}
return ResponseEntity.ok().build();
} catch (final ResponseStatusException rethrow) {
throw rethrow;
} catch (final Exception e) {
log.error("Failed to set project public permissions", e);
log.error("Unexpected error, failed to set project public permissions", e);
throw new ResponseStatusException(HttpStatus.SERVICE_UNAVAILABLE, messages.get("rebac.service-unavailable"));
}
}
Expand Down

0 comments on commit da6f3c1

Please sign in to comment.