feat: Always grant control permissions to pod owners

This commit is contained in:
Joachim Van Herwegen
2021-08-31 16:36:42 +02:00
parent 6c4ccb334d
commit 8f5d61911d
10 changed files with 224 additions and 6 deletions

View File

@@ -6,6 +6,10 @@ export interface AccountSettings {
* If this account can be used to identify as the corresponding WebID in the IDP.
*/
useIdp: boolean;
/**
* The base URL of the pod associated with this account, if there is one.
*/
podBaseUrl?: string;
}
/**

View File

@@ -191,6 +191,7 @@ export class RegistrationManager {
// Register the account
const settings: AccountSettings = {
useIdp: input.register,
podBaseUrl: podBaseUrl?.path,
};
await this.accountStore.create(input.email, input.webId!, input.password, settings);