From 71f6daf0e8ddc4c2bc6c9295aa0b1b86ab4e16f2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 13 Jul 2020 12:10:01 +0200 Subject: [PATCH] Add permission for treasurers to update the validation status of a transaction --- apps/permission/fixtures/initial.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/permission/fixtures/initial.json b/apps/permission/fixtures/initial.json index ba061c8b..25509b56 100644 --- a/apps/permission/fixtures/initial.json +++ b/apps/permission/fixtures/initial.json @@ -2200,6 +2200,22 @@ "description": "View my past activities" } }, + { + "model": "permission.permission", + "pk": 127, + "fields": { + "model": [ + "note", + "transaction" + ], + "query": "[\"AND\", [\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], [\"OR\", {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}, {\"valid\": true}]]", + "type": "change", + "mask": 1, + "field": "valid", + "permanent": false, + "description": "Update validation status of a club transaction if possible" + } + }, { "model": "permission.rolepermissions", "pk": 1, @@ -2287,7 +2303,8 @@ 27, 60, 61, - 62 + 62, + 127 ] } },