mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
Remove the old server side support for file browsing and file uploading and switch to a client side widget instead which uses XMLHTTPRequests to upload files via cgi-io and RPC calls for file listing and status queries. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
66 lines
1.5 KiB
JSON
66 lines
1.5 KiB
JSON
{
|
|
"unauthenticated": {
|
|
"description": "Allow system feature probing",
|
|
"read": {
|
|
"ubus": {
|
|
"luci": [ "getFeatures" ]
|
|
}
|
|
}
|
|
},
|
|
|
|
"uci-access": {
|
|
"description": "Grant uci write access to all configurations",
|
|
"read": {
|
|
"uci": [ "*" ]
|
|
},
|
|
"write": {
|
|
"uci": [ "*" ]
|
|
}
|
|
},
|
|
"luci-access": {
|
|
"description": "Grant access to basic LuCI procedures",
|
|
"read": {
|
|
"file": {
|
|
"/": [ "list" ],
|
|
"/*": [ "list" ]
|
|
},
|
|
"ubus": {
|
|
"file": [ "list", "stat" ],
|
|
"iwinfo": [ "assoclist" ],
|
|
"luci": [ "getBoardJSON", "getDUIDHints", "getHostHints", "getIfaddrs", "getInitList", "getLocaltime", "getTimezones", "getDHCPLeases", "getLEDs", "getNetworkDevices", "getUSBDevices", "getHostname", "getTTYDevices", "getWirelessDevices" ],
|
|
"network.device": [ "status" ],
|
|
"network.interface": [ "dump" ],
|
|
"network.wireless": [ "status" ],
|
|
"network": [ "get_proto_handlers" ],
|
|
"uci": [ "changes", "get" ]
|
|
},
|
|
"uci": [ "*" ]
|
|
},
|
|
"write": {
|
|
"cgi-io": [ "upload", "/etc/luci-uploads/*" ],
|
|
"file": {
|
|
"/etc/luci-uploads/*": [ "write" ]
|
|
},
|
|
"ubus": {
|
|
"file": [ "remove" ],
|
|
"iwinfo": [ "scan" ],
|
|
"luci": [ "setInitAction", "setLocaltime" ],
|
|
"uci": [ "add", "apply", "confirm", "delete", "order", "set" ]
|
|
},
|
|
"uci": [ "*" ]
|
|
}
|
|
},
|
|
"luci-app-firewall": {
|
|
"description": "Grant access to firewall procedures",
|
|
"read": {
|
|
"ubus": {
|
|
"luci": [ "getConntrackHelpers" ]
|
|
},
|
|
"uci": [ "firewall" ]
|
|
},
|
|
"write": {
|
|
"uci": [ "firewall" ]
|
|
}
|
|
}
|
|
}
|