feat(permissions): Adds server permissions
This commit is contained in:
parent
d46bbd84c5
commit
cf9c88a2d6
24 changed files with 415 additions and 69 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue