1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-12-08 09:28:10 +00:00

Allow unattaching

This commit is contained in:
bouncepaw
2021-01-19 23:08:59 +05:00
parent 36ecf44a2e
commit 0341fa6440
12 changed files with 307 additions and 33 deletions

View File

@@ -15,14 +15,16 @@ type User struct {
// Route — Right (more is more right)
var minimalRights = map[string]int{
"edit": 1,
"upload-binary": 1,
"upload-text": 1,
"rename-ask": 2,
"rename-confirm": 2,
"delete-ask": 3,
"delete-confirm": 3,
"reindex": 4,
"edit": 1,
"upload-binary": 1,
"upload-text": 1,
"rename-ask": 2,
"rename-confirm": 2,
"unattach-ask": 2,
"unattach-confirm": 2,
"delete-ask": 3,
"delete-confirm": 3,
"reindex": 4,
}
// Group — Right