summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-filebrowser/root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-filebrowser/root/usr')
-rw-r--r--applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json13
-rw-r--r--applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json14
2 files changed, 27 insertions, 0 deletions
diff --git a/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json b/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json
new file mode 100644
index 0000000000..506706957c
--- /dev/null
+++ b/applications/luci-app-filebrowser/root/usr/share/luci/menu.d/luci-app-filebrowser.json
@@ -0,0 +1,13 @@
+{
+ "admin/system/filebrowser": {
+ "title": "File Browser",
+ "order": 80,
+ "action": {
+ "type": "view",
+ "path": "system/filebrowser"
+ },
+ "depends": {
+ "acl": [ "luci-app-filebrowser" ]
+ }
+ }
+}
diff --git a/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json
new file mode 100644
index 0000000000..858a8dd70d
--- /dev/null
+++ b/applications/luci-app-filebrowser/root/usr/share/rpcd/acl.d/luci-app-filebrowser.json
@@ -0,0 +1,14 @@
+{
+ "luci-app-filebrowser": {
+ "description": "Grant access to File Browser",
+ "write": {
+ "cgi-io": [ "upload", "download" ],
+ "ubus": {
+ "file": [ "*" ]
+ },
+ "file": {
+ "/*": [ "list", "read", "write" ]
+ }
+ }
+ }
+}