mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
Refactor access to info table.
To adapt to new permissions system.
This commit is contained in:
@@ -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/': {
|
||||
|
||||
Reference in New Issue
Block a user