From b97b0de41206b37a28733fbd97c7718696c46509 Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Tue, 26 Oct 2021 11:43:51 +0200 Subject: [PATCH 1/2] Add field limit_of_users to organization. --- docker/initial-data.json | 3 ++- docs/example-data.json | 1 + docs/models.yml | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/initial-data.json b/docker/initial-data.json index d70025c98..daf271a66 100644 --- a/docker/initial-data.json +++ b/docker/initial-data.json @@ -1,5 +1,5 @@ { - "_migration_index": 7, + "_migration_index": 8, "organization": { "1": { "id": 1, @@ -11,6 +11,7 @@ "reset_password_verbose_errors": false, "enable_electronic_voting": false, "limit_of_meetings": 0, + "limit_of_users": 0, "committee_ids": [ 1 ], diff --git a/docs/example-data.json b/docs/example-data.json index d15fe0a37..e92effb6a 100644 --- a/docs/example-data.json +++ b/docs/example-data.json @@ -17,6 +17,7 @@ 1 ], "limit_of_meetings": 20, + "limit_of_users": 40, "resource_ids": [ 1 ], diff --git a/docs/models.yml b/docs/models.yml index 156c76f4c..ff02300f4 100644 --- a/docs/models.yml +++ b/docs/models.yml @@ -100,6 +100,12 @@ organization: restriction_mode: B default: 0 minimum: 0 + limit_of_users: + type: number + description: Maximum of active users for the whole organization. 0 means no limitation at all + restriction_mode: B + default: 0 + minimum: 0 committee_ids: type: relation-list From 2ec3ad19a2556a99743f929ca1571e6f64365749 Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Thu, 28 Oct 2021 14:11:15 +0200 Subject: [PATCH 2/2] Change md5sum of initial data. --- .github/workflows/md5_check_initial-data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/md5_check_initial-data.yml b/.github/workflows/md5_check_initial-data.yml index 7d2a4a95f..c48d8bf5b 100644 --- a/.github/workflows/md5_check_initial-data.yml +++ b/.github/workflows/md5_check_initial-data.yml @@ -21,4 +21,4 @@ jobs: run: md5sum docker/initial-data.json - name: Validate and protect initial-data.json - run: echo "a2e47f6afef1e7ea9ff4debc84305a6c docker/initial-data.json" | md5sum -c - + run: echo "c25fd1ee8ef1f152749f5a7608e94996 docker/initial-data.json" | md5sum -c -