feat(permissions): Adds server permissions

This commit is contained in:
Michel Fedde 2025-06-24 20:58:46 +02:00
parent d46bbd84c5
commit cf9c88a2d6
24 changed files with 415 additions and 69 deletions

View file

@ -29,9 +29,6 @@ export type CalendarRuntimeGroupConfiguration = {
location: null | string
}
export type GroupConfigurationResult =
ChannelId | Intl.Locale | boolean | string | null
export class GroupConfigurationProvider implements ConfigurationProvider<
GroupConfigurationModel,
RuntimeGroupConfiguration
@ -66,9 +63,13 @@ export class GroupConfigurationProvider implements ConfigurationProvider<
if (value.id) {
// @ts-expect-error id is set, due to the check on line above
this.repository.update(value);
return
}
this.repository.create(value);
this.repository.create({
...value,
group: this.group
});
}
getTransformer(): ConfigurationTransformer {
return new ConfigurationTransformer(