1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-27 10:53:02 +00:00
nk20/apps/permission/fixtures/initial.json

2459 lines
42 KiB
JSON
Raw Normal View History

[
2020-04-22 11:28:52 +00:00
{
"model": "member.role",
"pk": 1,
"fields": {
"name": "Adh\u00e9rent BDE"
}
},
{
"model": "member.role",
"pk": 2,
"fields": {
"name": "Adh\u00e9rent Kfet"
}
},
{
"model": "member.role",
"pk": 3,
"fields": {
"name": "Membre de club"
}
},
{
"model": "member.role",
"pk": 4,
"fields": {
"name": "Bureau de club"
}
},
{
"model": "member.role",
"pk": 5,
"fields": {
"name": "Pr\u00e9sident\u00b7e de club"
}
},
{
"model": "member.role",
"pk": 6,
"fields": {
"name": "Tr\u00e9sorier\u00b7\u00e8re de club"
}
},
{
"model": "member.role",
"pk": 7,
"fields": {
"name": "Pr\u00e9sident\u00b7e BDE"
}
},
{
"model": "member.role",
"pk": 8,
"fields": {
"name": "Tr\u00e9sorier\u00b7\u00e8re BDE"
}
},
{
"model": "member.role",
"pk": 9,
"fields": {
"name": "Respo info"
}
},
{
"model": "member.role",
"pk": 10,
"fields": {
"name": "GC Kfet"
}
},
{
"model": "member.role",
"pk": 11,
"fields": {
"name": "Res[pot]"
}
},
{
"model": "member.role",
"pk": 12,
"fields": {
"name": "GC WEI"
}
},
{
"model": "member.role",
"pk": 13,
"fields": {
"name": "Chef de bus"
}
},
{
"model": "member.role",
"pk": 14,
"fields": {
"name": "Chef d'\u00e9quipe"
}
},
{
"model": "member.role",
"pk": 15,
"fields": {
"name": "\u00c9lectron libre"
}
},
{
"model": "member.role",
"pk": 16,
"fields": {
"name": "\u00c9lectron libre (avec perm)"
}
},
{
"model": "member.role",
"pk": 17,
"fields": {
"name": "1A"
}
},
2020-04-24 12:03:25 +00:00
{
"model": "member.role",
"pk": 18,
"fields": {
"name": "Adhérent WEI"
}
},
2020-04-22 11:28:52 +00:00
{
"model": "wei.weirole",
"pk": 12,
"fields": {}
},
{
"model": "wei.weirole",
"pk": 13,
"fields": {}
},
{
"model": "wei.weirole",
"pk": 14,
"fields": {}
},
{
"model": "wei.weirole",
"pk": 15,
"fields": {}
},
{
"model": "wei.weirole",
"pk": 16,
"fields": {}
},
{
"model": "wei.weirole",
"pk": 17,
"fields": {}
},
2020-04-24 12:03:25 +00:00
{
"model": "wei.weirole",
"pk": 18,
"fields": {}
},
2020-04-22 11:28:52 +00:00
{
"model": "permission.permissionmask",
"pk": 1,
"fields": {
"rank": 0,
"description": "Droits basiques"
}
},
{
"model": "permission.permissionmask",
"pk": 2,
"fields": {
"rank": 1,
"description": "Droits note seulement"
}
},
{
"model": "permission.permissionmask",
"pk": 3,
"fields": {
"rank": 42,
"description": "Tous mes droits"
}
},
{
"model": "permission.permission",
"pk": 1,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View our User object"
}
},
{
"model": "permission.permission",
"pk": 2,
"fields": {
"model": [
"member",
"profile"
],
"query": "{\"user\": [\"user\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View our profile"
}
},
{
"model": "permission.permission",
"pk": 3,
"fields": {
"model": [
"note",
"noteuser"
],
"query": "{\"pk\": [\"user\", \"note\", \"pk\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View our own note"
}
},
{
"model": "permission.permission",
"pk": 4,
"fields": {
"model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View our API token"
}
},
{
"model": "permission.permission",
"pk": 5,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source\": [\"user\", \"note\"]}, {\"destination\": [\"user\", \"note\"]}]",
"type": "view",
"mask": 1,
"field": "",
"description": "View our own transactions"
}
},
{
"model": "permission.permission",
"pk": 6,
"fields": {
"model": [
"note",
"alias"
],
"query": "[\"OR\", {\"note__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club__name\": \"Kfet\"}], [\"all\"]]}, {\"note__in\": [\"NoteClub\", \"objects\", [\"all\"]]}]",
"type": "view",
"mask": 1,
"field": "",
"description": "View aliases of clubs and members of Kfet club"
}
},
{
"model": "permission.permission",
"pk": 7,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "last_login",
"description": "Change myself's last login"
}
},
{
"model": "permission.permission",
"pk": 8,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "username",
"description": "Change myself's username"
}
},
{
"model": "permission.permission",
"pk": 9,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "first_name",
"description": "Change myself's first name"
}
},
{
"model": "permission.permission",
"pk": 10,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "last_name",
"description": "Change myself's last name"
}
},
{
"model": "permission.permission",
"pk": 11,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"pk\": [\"user\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "email",
"description": "Change myself's email"
}
},
{
"model": "permission.permission",
"pk": 12,
"fields": {
"model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}",
"type": "delete",
"mask": 1,
"field": "",
"description": "Delete API Token"
}
},
{
"model": "permission.permission",
"pk": 13,
"fields": {
"model": [
"authtoken",
"token"
],
"query": "{\"user\": [\"user\"]}",
"type": "add",
"mask": 1,
"field": "",
"description": "Create API Token"
}
},
{
"model": "permission.permission",
"pk": 14,
"fields": {
"model": [
"note",
"alias"
],
"query": "{\"note\": [\"user\", \"note\"]}",
"type": "delete",
"mask": 1,
"field": "",
"description": "Remove alias"
}
},
{
"model": "permission.permission",
"pk": 15,
"fields": {
"model": [
"note",
"alias"
],
"query": "{\"note\": [\"user\", \"note\"]}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add alias"
}
},
{
"model": "permission.permission",
"pk": 16,
"fields": {
"model": [
"note",
"noteuser"
],
"query": "{\"pk\": [\"user\", \"note\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "display_image",
"description": "Change myself's display image"
}
},
{
"model": "permission.permission",
"pk": 17,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"AND\", {\"source\": [\"user\", \"note\"]}, [\"OR\", {\"amount__lte\": [\"user\", \"note\", \"balance\"]}, {\"valid\": false}]]",
"type": "add",
"mask": 1,
"field": "",
"description": "Transfer from myself's note"
}
},
{
"model": "permission.permission",
"pk": 18,
"fields": {
"model": [
"note",
"note"
],
"query": "{}",
"type": "change",
"mask": 1,
"field": "balance",
"description": "Update a note balance with a transaction"
}
},
{
"model": "permission.permission",
"pk": 19,
"fields": {
"model": [
"note",
"note"
],
"query": "[\"OR\", {\"pk\": [\"club\", \"note\", \"pk\"]}, {\"pk__in\": [\"NoteUser\", \"objects\", [\"filter\", {\"user__membership__club\": [\"club\"]}], [\"all\"]]}]",
"type": "view",
"mask": 2,
"field": "",
"description": "View notes of club members"
}
},
{
"model": "permission.permission",
"pk": 20,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"AND\", [\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], [\"OR\", {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}, {\"valid\": false}]]",
"type": "add",
"mask": 2,
"field": "",
"description": "Create transactions with a club"
}
},
{
"model": "permission.permission",
"pk": 21,
"fields": {
"model": [
"note",
"recurrenttransaction"
],
"query": "[\"AND\", {\"destination\": [\"club\", \"note\"]}, [\"OR\", {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}, {\"valid\": false}]]",
"type": "add",
"mask": 2,
"field": "",
"description": "Create transactions from buttons with a club"
}
},
{
"model": "permission.permission",
"pk": 22,
"fields": {
"model": [
"member",
"club"
],
"query": "{\"pk\": [\"club\", \"pk\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View club infos"
}
},
{
"model": "permission.permission",
"pk": 23,
"fields": {
"model": [
"note",
"transaction"
],
"query": "{}",
"type": "change",
"mask": 1,
"field": "valid",
"description": "Update validation status of a transaction"
}
},
{
"model": "permission.permission",
"pk": 24,
"fields": {
"model": [
"note",
"transaction"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "View all transactions"
}
},
{
"model": "permission.permission",
"pk": 25,
"fields": {
"model": [
"note",
"notespecial"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "Display credit/debit interface"
}
},
{
"model": "permission.permission",
"pk": 26,
"fields": {
"model": [
"note",
"specialtransaction"
],
"query": "{}",
"type": "add",
"mask": 2,
"field": "",
"description": "Create credit/debit transaction"
}
},
{
"model": "permission.permission",
"pk": 27,
"fields": {
"model": [
"note",
"templatecategory"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "View button categories"
}
},
{
"model": "permission.permission",
"pk": 28,
"fields": {
"model": [
"note",
"templatecategory"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Change button category"
}
},
{
"model": "permission.permission",
"pk": 29,
"fields": {
"model": [
"note",
"templatecategory"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add button category"
}
},
{
"model": "permission.permission",
"pk": 30,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "View buttons"
}
},
{
"model": "permission.permission",
"pk": 31,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add buttons"
}
},
{
"model": "permission.permission",
"pk": 32,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Update buttons"
}
},
{
"model": "permission.permission",
"pk": 33,
"fields": {
"model": [
"note",
"transaction"
],
"query": "{}",
"type": "add",
"mask": 2,
"field": "",
"description": "Create any transaction"
}
},
{
"model": "permission.permission",
"pk": 34,
"fields": {
"model": [
"activity",
"activity"
],
"query": "[\"OR\", {\"valid\": true}, {\"creater\": [\"user\"]}]",
"type": "view",
"mask": 1,
"field": "",
"description": "View valid activites"
}
},
{
"model": "permission.permission",
"pk": 35,
"fields": {
"model": [
"activity",
"activity"
],
"query": "[\"AND\", {\"valid\": false}, {\"creater\": [\"user\"]}]",
"type": "change",
"mask": 1,
"field": "",
"description": "Change our activities"
}
},
{
"model": "permission.permission",
"pk": 36,
"fields": {
"model": [
"activity",
"activity"
],
"query": "{\"creater\": [\"user\"], \"valid\": false}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add activities"
}
},
{
"model": "permission.permission",
"pk": 37,
"fields": {
"model": [
"activity",
"activity"
],
"query": "{}",
"type": "change",
"mask": 2,
"field": "valid",
"description": "Validate activities"
}
},
{
"model": "permission.permission",
"pk": 38,
"fields": {
"model": [
"activity",
"activity"
],
"query": "{}",
"type": "change",
"mask": 2,
"field": "open",
"description": "Open activities"
}
},
{
"model": "permission.permission",
"pk": 39,
"fields": {
"model": [
"activity",
"guest"
],
"query": "{\"inviter\": [\"user\", \"note\"], \"activity__activity_type__can_invite\": true}",
"type": "add",
"mask": 1,
"field": "",
"description": "Invite people to activities"
}
},
{
"model": "permission.permission",
"pk": 40,
"fields": {
"model": [
"activity",
"guest"
],
"query": "{\"inviter\": [\"user\", \"note\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View invited people"
}
},
{
"model": "permission.permission",
"pk": 41,
"fields": {
"model": [
"activity",
"activity"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "View all activities"
}
},
{
"model": "permission.permission",
"pk": 42,
"fields": {
"model": [
"activity",
"guest"
],
"query": "{}",
"type": "view",
"mask": 2,
"field": "",
"description": "View all invited people"
}
},
{
"model": "permission.permission",
"pk": 43,
"fields": {
"model": [
"activity",
"entry"
],
"query": "{}",
"type": "add",
"mask": 2,
"field": "",
"description": "Manage entries"
}
},
{
"model": "permission.permission",
"pk": 44,
"fields": {
"model": [
"activity",
"guesttransaction"
],
"query": "{}",
"type": "add",
"mask": 2,
"field": "",
"description": "Add invitation transactions"
}
},
{
"model": "permission.permission",
"pk": 45,
"fields": {
"model": [
"activity",
"guesttransaction"
],
"query": "{}",
"type": "view",
"mask": 1,
"field": "",
"description": "View invitation transactions"
}
},
{
"model": "permission.permission",
"pk": 46,
"fields": {
"model": [
"activity",
"guesttransaction"
],
"query": "{}",
"type": "change",
"mask": 2,
"field": "valid",
"description": "Validate invitation transactions"
}
},
{
"model": "permission.permission",
"pk": 47,
"fields": {
"model": [
"member",
"club"
],
"query": "{\"pk\": [\"club\", \"pk\"]}",
"type": "change",
"mask": 1,
"field": "",
"description": "Update club"
}
},
{
"model": "permission.permission",
"pk": 48,
"fields": {
"model": [
"member",
"membership"
],
"query": "{\"user\": [\"user\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View our memberships"
}
},
{
"model": "permission.permission",
"pk": 49,
"fields": {
"model": [
"member",
"membership"
],
"query": "{\"club\": [\"club\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View club's memberships"
}
},
{
"model": "permission.permission",
"pk": 50,
"fields": {
"model": [
"member",
"membership"
],
"query": "{\"club\": [\"club\"]}",
"type": "add",
"mask": 2,
"field": "",
"description": "Add a membership to a club"
}
},
{
"model": "permission.permission",
"pk": 51,
"fields": {
"model": [
"member",
"membership"
],
"query": "{\"club\": [\"club\"]}",
"type": "change",
"mask": 2,
"field": "roles",
"description": "Update user roles"
}
},
{
"model": "permission.permission",
"pk": 52,
"fields": {
"model": [
"member",
"profile"
],
"query": "{\"user\": [\"user\"]}",
"type": "change",
"mask": 1,
"field": "",
"description": "Change own profile"
}
},
{
"model": "permission.permission",
"pk": 53,
"fields": {
"model": [
"member",
"profile"
],
"query": "{}",
"type": "change",
"mask": 2,
"field": "",
"description": "Change any profile"
}
},
{
"model": "permission.permission",
"pk": 54,
"fields": {
"model": [
"auth",
"user"
],
"query": "{}",
"type": "change",
"mask": 2,
"field": "",
"description": "Change any user"
}
},
{
"model": "permission.permission",
"pk": 55,
"fields": {
"model": [
"auth",
"user"
],
"query": "{}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add user"
}
},
{
"model": "permission.permission",
"pk": 56,
"fields": {
"model": [
"member",
"profile"
],
"query": "{\"email_confirmed\": false, \"registration_valid\": false}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add profile"
}
},
{
"model": "permission.permission",
"pk": 57,
"fields": {
"model": [
"auth",
"user"
],
"query": "{\"profile__registration_valid\": false}",
"type": "delete",
"mask": 2,
"field": "",
"description": "Delete pre-registered user"
}
},
{
"model": "permission.permission",
"pk": 58,
"fields": {
"model": [
"member",
"profile"
],
"query": "{\"registration_valid\": false}",
"type": "delete",
"mask": 2,
"field": "",
"description": "Delete pre-registered user profile"
}
},
{
"model": "permission.permission",
"pk": 59,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{\"destination\": [\"club\", \"note\"]}",
"type": "view",
"mask": 2,
"field": "",
"description": "New club button"
}
},
{
"model": "permission.permission",
"pk": 60,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{\"destination\": [\"club\", \"note\"]}",
"type": "add",
"mask": 2,
"field": "",
"description": "Create club button"
}
},
{
"model": "permission.permission",
"pk": 61,
"fields": {
"model": [
"note",
"transactiontemplate"
],
"query": "{\"destination\": [\"club\", \"note\"]}",
"type": "change",
"mask": 2,
"field": "",
"description": "Update club button"
}
},
{
"model": "permission.permission",
"pk": 62,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}]",
"type": "view",
"mask": 1,
"field": "",
"description": "View transactions of a club"
}
},
{
"model": "permission.permission",
"pk": 63,
"fields": {
"model": [
"treasury",
"invoice"
],
"query": "{}",
"type": "view",
"mask": 3,
"field": "",
"description": "View invoices"
}
},
{
"model": "permission.permission",
"pk": 64,
"fields": {
"model": [
"treasury",
"invoice"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add invoice"
}
},
{
"model": "permission.permission",
"pk": 65,
"fields": {
"model": [
"treasury",
"invoice"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Change invoice"
}
},
{
"model": "permission.permission",
"pk": 66,
"fields": {
"model": [
"treasury",
"product"
],
"query": "{}",
"type": "view",
"mask": 3,
"field": "",
"description": "View products"
}
},
{
"model": "permission.permission",
"pk": 67,
"fields": {
"model": [
"treasury",
"product"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add products"
}
},
{
"model": "permission.permission",
"pk": 68,
"fields": {
"model": [
"treasury",
"product"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Change product"
}
},
{
"model": "permission.permission",
"pk": 69,
"fields": {
"model": [
"treasury",
"product"
],
"query": "{}",
"type": "delete",
"mask": 3,
"field": "",
"description": "Delete product"
}
},
{
"model": "permission.permission",
"pk": 70,
"fields": {
"model": [
"treasury",
"sogecredit"
],
"query": "{\"credit_transaction\": null}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add Soci\u00e9t\u00e9 g\u00e9n\u00e9rale credit"
}
},
{
"model": "permission.permission",
"pk": 71,
"fields": {
"model": [
"treasury",
"sogecredit"
],
"query": "{}",
"type": "view",
"mask": 3,
"field": "",
"description": "View all Soci\u00e9t\u00e9 g\u00e9n\u00e9rale credits"
}
},
{
"model": "permission.permission",
"pk": 72,
"fields": {
"model": [
"treasury",
"sogecredit"
],
"query": "{}",
"type": "change",
"mask": 1,
"field": "",
"description": "Update Soci\u00e9t\u00e9 g\u00e9n\u00e9rale credit"
}
},
{
"model": "permission.permission",
"pk": 73,
"fields": {
"model": [
"treasury",
"sogecredit"
],
"query": "{}",
"type": "delete",
"mask": 3,
"field": "",
"description": "Delete Soci\u00e9t\u00e9 g\u00e9n\u00e9rale credit"
}
},
{
"model": "permission.permission",
"pk": 74,
"fields": {
"model": [
"wei",
"weiclub"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Create a WEI"
}
},
{
"model": "permission.permission",
"pk": 75,
"fields": {
"model": [
"wei",
"weiclub"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Update all WEI"
}
},
{
"model": "permission.permission",
"pk": 76,
"fields": {
"model": [
"wei",
"weiclub"
],
"query": "{\"pk\": [\"club\", \"pk\"]}",
"type": "change",
"mask": 3,
"field": "",
"description": "Update this WEI"
}
},
{
"model": "permission.permission",
"pk": 77,
"fields": {
"model": [
"wei",
"weiclub"
],
2020-04-24 12:03:25 +00:00
"query": "{\"pk\": [\"club\", \"pk\"]}",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
2020-04-24 12:03:25 +00:00
"description": "View my WEI"
2020-04-22 11:28:52 +00:00
}
},
{
"model": "permission.permission",
"pk": 78,
"fields": {
"model": [
"wei",
"weiclub"
],
"query": "{\"membership_start__lte\": [\"today\"], \"year\": [\"today\", \"year\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View last WEI"
}
},
{
"model": "permission.permission",
"pk": 79,
"fields": {
"model": [
"wei",
"weirole"
],
"query": "{}",
"type": "view",
"mask": 1,
"field": "",
"description": "View WEI Roles"
}
},
{
"model": "permission.permission",
"pk": 80,
"fields": {
"model": [
"wei",
"weirole"
],
"query": "{}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add WEI Role"
}
},
{
"model": "permission.permission",
"pk": 81,
"fields": {
"model": [
"wei",
"weirole"
],
"query": "{}",
"type": "change",
"mask": 3,
"field": "",
"description": "Change WEI Role"
}
},
{
"model": "permission.permission",
"pk": 82,
"fields": {
"model": [
"wei",
"weirole"
],
"query": "{}",
"type": "delete",
"mask": 3,
"field": "",
"description": "Delete WEI Role"
}
},
{
"model": "permission.permission",
"pk": 83,
"fields": {
"model": [
"wei",
"weiregistration"
],
2020-04-24 12:03:25 +00:00
"query": "{\"user\": [\"user\"], \"wei__year\": [\"today\", \"year\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"], \"membership\": null}",
2020-04-22 11:28:52 +00:00
"type": "add",
"mask": 1,
"field": "",
"description": "Register myself to the last WEI"
}
},
{
"model": "permission.permission",
"pk": 84,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"first_year\": true, \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"], \"membership\": null}",
"type": "add",
"mask": 1,
"field": "",
"description": "Register first year members to the last WEI"
}
},
{
"model": "permission.permission",
"pk": 85,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"], \"membership\": null}",
"type": "add",
"mask": 1,
"field": "",
"description": "Register anyone to this WEI"
}
},
{
"model": "permission.permission",
"pk": 86,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"]}",
"type": "delete",
"mask": 1,
"field": "",
"description": "Delete WEI registration"
}
},
{
"model": "permission.permission",
"pk": 87,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View my own WEI registration"
}
},
{
"model": "permission.permission",
"pk": 88,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"]}",
"type": "view",
"mask": 1,
"field": "",
"description": "View all WEI Registrations"
}
},
{
"model": "permission.permission",
"pk": 89,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "soge_credit",
"description": "Update the soge credit field of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 90,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "soge_credit",
"description": "Update the soge credit field of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 91,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "caution_check",
"description": "Update the caution check field of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 92,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "birth_date",
"description": "Update the birth date of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 93,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "birth_date",
"description": "Update the birth date of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 94,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "gender",
"description": "Update the gender of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 95,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "gender",
"description": "Update the gender of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 96,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "health_issues",
"description": "Update the health issues of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 97,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "health_issues",
"description": "Update the health issues of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 98,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "emergency_contact_name",
"description": "Update the emergency contact name of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 99,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "emergency_contact_name",
"description": "Update the emergency contact name of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 100,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "emergency_contact_phone",
"description": "Update the emergency contact phone of any WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 101,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "[\"AND\", {\"user\": [\"user\"], \"wei__membership_start__lte\": [\"today\"], \"wei__membership_end__gte\": [\"today\"]}, [\"OR\", {\"wei\": [\"club\"]}, {\"wei__year\": [\"today\", \"year\"], \"membership\": null}]]",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "emergency_contact_phone",
"description": "Update the emergency contact phone of my own WEI Registration"
}
},
{
"model": "permission.permission",
"pk": 102,
"fields": {
"model": [
"wei",
"weiregistration"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "information_json",
"description": "Update information of any WEI registration"
}
},
{
"model": "permission.permission",
"pk": 103,
"fields": {
"model": [
"wei",
"bus"
],
"query": "{\"wei\": [\"club\"]}",
"type": "add",
"mask": 3,
"field": "",
"description": "Add a bus for the current WEI"
}
},
{
"model": "permission.permission",
"pk": 104,
"fields": {
"model": [
"wei",
"bus"
],
2020-04-24 12:03:25 +00:00
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 3,
"field": "name",
"description": "Update the name of a bus for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 105,
"fields": {
"model": [
"wei",
"bus"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 3,
"field": "description",
"description": "Update the description of a bus for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 106,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "add",
"mask": 3,
"field": "",
"description": "Create a bus team for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 107,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"wei\": [\"club\"], \"wei__membership_end__gte\": [\"today\"]}",
"type": "change",
"mask": 3,
"field": "",
"description": "Update a bus team for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 108,
"fields": {
"model": [
"wei",
"bus"
],
2020-04-24 12:03:25 +00:00
"query": "[\"AND\", {\"wei\": [\"club\"]}, [\"OR\", [\"NOT\", [\"membership\", \"registration\", \"first_year\"]], {\"wei__date_end__lte\": [\"today\"]}]]",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View buses of the last WEI"
}
},
{
"model": "permission.permission",
"pk": 109,
"fields": {
"model": [
"wei",
"busteam"
],
2020-04-24 12:03:25 +00:00
"query": "[\"AND\", {\"wei\": [\"club\"]}, [\"OR\", [\"NOT\", [\"membership\", \"registration\", \"first_year\"]], {\"wei__date_end__lte\": [\"today\"]}]]",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View bus teams of the last WEI"
}
},
{
"model": "permission.permission",
"pk": 110,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "[\"AND\", {\"club\": [\"club\"], \"club__weiclub__membership_end__gte\": [\"today\"]}, [\"OR\", {\"registration__soge_credit\": true}, {\"user__note__balance__gte\": [\"F\", \"fee\"]}]]",
2020-04-22 11:28:52 +00:00
"type": "add",
"mask": 3,
"field": "",
"description": "Create a WEI membership for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 111,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "{\"club\": [\"club\"], \"club__weiclub__membership_end__gte\": [\"today\"]}",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "bus",
"description": "Update the bus of a WEI membership"
}
},
{
"model": "permission.permission",
"pk": 112,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "{\"club\": [\"club\"], \"club__weiclub__membership_end__gte\": [\"today\"]}",
2020-04-22 11:28:52 +00:00
"type": "change",
"mask": 1,
"field": "team",
"description": "Update the team of a WEI membership"
}
},
{
"model": "permission.permission",
"pk": 113,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "{\"club\": [\"club\"]}",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View all WEI Memberships for the last WEI"
}
},
{
"model": "permission.permission",
"pk": 114,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "[\"AND\", {\"user\": [\"user\"], \"club\": [\"club\"]}, [\"OR\", {\"registration__first_year\": false, \"club__weiclub__date_end__lte\": [\"today\"]}]]",
2020-04-22 11:28:52 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View my own WEI membership if I am an old member or if the WEI is past"
}
},
2020-04-23 16:28:16 +00:00
{
"model": "permission.permission",
"pk": 115,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "{\"club\": [\"club\"], \"bus\": [\"membership\", \"weimembership\", \"bus\"]}",
2020-04-23 16:28:16 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View the members of the bus"
}
},
{
"model": "permission.permission",
"pk": 116,
"fields": {
"model": [
"wei",
"weimembership"
],
2020-04-24 12:03:25 +00:00
"query": "{\"club\": [\"club\"], \"team\": [\"membership\", \"weimembership\", \"team\"]}",
2020-04-23 16:28:16 +00:00
"type": "view",
"mask": 1,
"field": "",
"description": "View the members of the team"
}
},
2020-04-24 12:03:25 +00:00
{
"model": "permission.permission",
"pk": 117,
"fields": {
"model": [
"wei",
"bus"
],
"query": "{\"pk\": [\"membership\", \"bus\", \"pk\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "name",
"description": "Update the name of my bus"
}
},
{
"model": "permission.permission",
"pk": 118,
"fields": {
"model": [
"wei",
"bus"
],
"query": "{\"pk\": [\"membership\", \"bus\", \"pk\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "description",
"description": "Update the description of my bus"
}
},
{
"model": "permission.permission",
"pk": 119,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"bus\": [\"membership\", \"bus\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "add",
"mask": 1,
"field": "",
"description": "Add a team to my bus"
}
},
{
"model": "permission.permission",
"pk": 120,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"bus\": [\"membership\", \"bus\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "name",
"description": "Update the name of a team of my bus"
}
},
{
"model": "permission.permission",
"pk": 121,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"bus\": [\"membership\", \"bus\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "color",
"description": "Update the color of a team of my bus"
}
},
{
"model": "permission.permission",
"pk": 122,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"bus\": [\"membership\", \"bus\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "description",
"description": "Update the description of a team of my bus"
}
},
{
"model": "permission.permission",
"pk": 123,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"pk\": [\"membership\", \"team\", \"pk\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "name",
"description": "Update the name of my team"
}
},
{
"model": "permission.permission",
"pk": 124,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"pk\": [\"membership\", \"team\", \"pk\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "color",
"description": "Update the color of my team"
}
},
{
"model": "permission.permission",
"pk": 125,
"fields": {
"model": [
"wei",
"busteam"
],
"query": "{\"pk\": [\"membership\", \"team\", \"pk\"], \"wei__date_end__gte\": [\"today\"]}",
"type": "change",
"mask": 1,
"field": "description",
"description": "Update the description of my team"
}
},
2020-04-22 11:28:52 +00:00
{
"model": "permission.rolepermissions",
"pk": 1,
"fields": {
"role": 1,
"permissions": [
1,
2,
3,
4,
5,
7,
8,
9,
10,
11,
12,
13,
48,
52
]
}
},
{
"model": "permission.rolepermissions",
"pk": 2,
"fields": {
"role": 2,
"permissions": [
34,
35,
36,
6,
39,
40,
14,
15,
16,
17,
18,
70,
108,
109,
78,
79,
2020-04-24 12:03:25 +00:00
83
2020-04-22 11:28:52 +00:00
]
}
},
{
"model": "permission.rolepermissions",
"pk": 4,
"fields": {
"role": 4,
"permissions": [
22,
47,
49
]
}
},
{
"model": "permission.rolepermissions",
"pk": 5,
"fields": {
"role": 5,
"permissions": [
50,
51,
62
]
}
},
{
"model": "permission.rolepermissions",
"pk": 6,
"fields": {
"role": 6,
"permissions": [
19,
20,
21,
27,
59,
60,
61,
62
]
}
},
{
"model": "permission.rolepermissions",
"pk": 7,
"fields": {
"role": 7,
"permissions": [
24,
25,
26,
27,
33
]
}
},
{
"model": "permission.rolepermissions",
"pk": 8,
"fields": {
"role": 8,
"permissions": [
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
53,
54,
55,
56,
57,
58,
63,
64,
65,
66,
67,
68,
69,
72,
73,
71
]
}
},
{
"model": "permission.rolepermissions",
"pk": 9,
"fields": {
"role": 9,
"permissions": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99,
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
2020-04-24 12:03:25 +00:00
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125
2020-04-22 11:28:52 +00:00
]
}
},
{
"model": "permission.rolepermissions",
"pk": 10,
"fields": {
"role": 10,
"permissions": [
23,
24,
25,
26,
27,
28,
29,
30,
2020-04-24 12:03:25 +00:00
31,
32,
33,
52,
53,
54,
55,
56,
57,
58
2020-04-22 11:28:52 +00:00
]
}
},
{
"model": "permission.rolepermissions",
"pk": 11,
"fields": {
"role": 11,
"permissions": [
37,
38,
41,
42,
43,
44,
45,
46
]
}
},
{
"model": "permission.rolepermissions",
"pk": 12,
"fields": {
"role": 12,
"permissions": [
76,
80,
81,
82,
85,
86,
88,
89,
91,
92,
94,
96,
98,
100,
102,
103,
104,
105,
106,
107,
110,
111,
112,
113
]
}
2020-04-23 16:28:16 +00:00
},
{
"model": "permission.rolepermissions",
"pk": 13,
"fields": {
"role": 13,
"permissions": [
2020-04-24 12:03:25 +00:00
115,
117,
118,
120,
121,
122
2020-04-23 16:28:16 +00:00
]
}
},
{
"model": "permission.rolepermissions",
"pk": 14,
"fields": {
"role": 14,
"permissions": [
116
]
}
2020-04-24 12:03:25 +00:00
},
{
"model": "permission.rolepermissions",
"pk": 16,
"fields": {
"role": 18,
"permissions": [
77,
84,
87,
90,
93,
95,
97,
99,
101,
108,
109,
114
]
}
2020-04-22 11:28:52 +00:00
}
]