mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 15:50:03 +01:00 
			
		
		
		
	Add permission for treasurers to update the validation status of a transaction
This commit is contained in:
		| @@ -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 | ||||
| 			] | ||||
| 		} | ||||
| 	}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user