Refactor access to info table.

To adapt to new permissions system.
This commit is contained in:
D. Berge
2025-07-13 00:07:05 +02:00
parent b7ae657137
commit 8188766a81
12 changed files with 30 additions and 25 deletions

View File

@@ -83,7 +83,7 @@ app.map({
post: [ mw.user.logout ]
},
'/version': {
get: [ mw.version.get ]
get: [ mw.auth.operations, mw.version.get ]
},
'/': {
get: [ mw.openapi.get ]
@@ -304,10 +304,10 @@ app.map({
},
'/info/': {
':path(*)': {
get: [ mw.info.get ],
put: [ mw.auth.access.write, mw.info.put ],
post: [ mw.auth.access.write, mw.info.post ],
delete: [ mw.auth.access.write, mw.info.delete ]
get: [ mw.auth.operations, mw.info.get ],
put: [ mw.auth.operations, mw.auth.access.write, mw.info.put ],
post: [ mw.auth.operations, mw.auth.access.write, mw.info.post ],
delete: [ mw.auth.operations, mw.auth.access.write, mw.info.delete ]
}
},
'/queue/outgoing/': {