Skip to content
Snippets Groups Projects
Commit 9b4923fc authored by ynerant's avatar ynerant
Browse files

Fix some permissions, grant temporary all treasurers to make transactions from...

Fix some permissions, grant temporary all treasurers to make transactions from anyone to anyone while a better system is not implemented
parent c93c8186
No related branches found
No related tags found
1 merge request!107Beta
Pipeline #8623 failed with stages
in 3 minutes and 53 seconds
......@@ -2583,6 +2583,54 @@
"description": "Changer son mot de passe"
}
},
{
"model": "permission.permission",
"pk": 166,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source__balance__gte\": {\"F\": [\"SUB\", [\"MUL\", [\"F\", \"amount\"], [\"F\", \"quantity\"]], 5000]}}, {\"valid\": false}]",
"type": "add",
"mask": 2,
"field": "",
"permanent": false,
"description": "Créer une transaction quelconque tant que la source reste au-dessus de -50 €"
}
},
{
"model": "permission.permission",
"pk": 167,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], [\"OR\", {\"source__balance__gte\": {\"F\": [\"SUB\", [\"MUL\", [\"F\", \"amount\"], [\"F\", \"quantity\"]], 5000]}, \"valid\": true}, {\"destination__balance__gte\": {\"F\": [\"SUB\", [\"MUL\", [\"F\", \"amount\"], [\"F\", \"quantity\"]], 5000]}, \"valid\": false}]",
"type": "change",
"mask": 2,
"field": "valid",
"permanent": false,
"description": "Modifier le statut de validation d'une transaction si c'est possible"
}
},
{
"model": "permission.permission",
"pk": 168,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source__balance__gte\": {\"F\": [\"SUB\", [\"MUL\", [\"F\", \"amount\"], [\"F\", \"quantity\"]], 5000]}, \"valid\": true}, {\"destination__balance__gte\": {\"F\": [\"SUB\", [\"MUL\", [\"F\", \"amount\"], [\"F\", \"quantity\"]], 5000]}, \"valid\": false}]",
"type": "change",
"mask": 2,
"field": "invalidity_reason",
"permanent": false,
"description": "Modifier la raison d'invalidité d'une transaction si c'est possible"
}
},
{
"model": "permission.role",
"pk": 1,
......@@ -2714,7 +2762,11 @@
127,
133,
141,
142
142,
150,
166,
167,
168
]
}
},
......@@ -2728,8 +2780,7 @@
24,
25,
26,
27,
33
27
]
}
},
......@@ -2962,7 +3013,6 @@
"name": "GC Kfet",
"permissions": [
32,
33,
56,
58,
55,
......@@ -2977,7 +3027,10 @@
29,
30,
31,
143
143,
166,
167,
168
]
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment