Skip to content

Commit

Permalink
ldp.registry.getUri: throw error if webId is anon or system
Browse files Browse the repository at this point in the history
  • Loading branch information
srosset81 committed Jan 9, 2025
1 parent 6ea027a commit b2e3423
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
const { path, webId } = ctx.params;

if (this.settings.podProvider) {
if (webId === 'system' || webId === 'anon')
throw new Error(`You must provide a real webId param in Pod provider config. Received: ${webId}`);
const podUrl = await ctx.call('solid-storage.getUrl', { webId });
return urlJoin(podUrl, path);
} else {
Expand Down

0 comments on commit b2e3423

Please sign in to comment.