Merge branch 'allow-disabling-event-creation' into 'master'

Allow to disable event creation

See merge request framasoft/mobilizon!560
This commit is contained in:
Thomas Citharel
2020-09-02 15:32:29 +02:00
8 changed files with 20 additions and 10 deletions

View File

@@ -18,7 +18,7 @@
v-if="config && config.features.groups"
>{{ $t("My groups") }}</b-navbar-item
>
<b-navbar-item tag="span">
<b-navbar-item tag="span" v-if="config && config.features.eventCreation">
<b-button tag="router-link" :to="{ name: RouteName.CREATE_EVENT }" type="is-primary">{{
$t("Create")
}}</b-button>

View File

@@ -61,6 +61,7 @@ export const CONFIG = gql`
}
features {
groups
eventCreation
}
auth {
ldap

View File

@@ -70,6 +70,7 @@ export interface IConfig {
resourceProviders: IProvider[];
timezones: string[];
features: {
eventCreation: boolean;
groups: boolean;
};
federating: boolean;