fix: admin/fs: forgot to reflect on gui that now root supports can_read permission

Massimo Melina committed Jun 20, 2022 at 14:38 UTC 0ba7c7f779d8e5dae1d0ec785b05bb8784ebeec0
1 file changed +1 -1
admin/src/FileForm.ts
+1 -1
@@ -82,7 +82,7 @@ export default function FileForm({ file }: { file: VfsNode }) {
82 : { k: 'name', required: true, helperText: source && "You can decide a name that's different from the one on your disk" },
83 isRoot ? { k: 'source', comp: FileField, files: false, helperText: "If you specify a folder here, its files will be listed in the home" }
84 : (hasSource && { k: 'source', comp: DisplayField, multiline: true }),
85 - !isRoot && { k: 'can_read', label:"Who can download", xl: showCanSee && 6, comp: WhoField, parent, accounts, inherit: inheritedPerms.can_read,
85 + { k: 'can_read', label:"Who can download", xl: showCanSee && 6, comp: WhoField, parent, accounts, inherit: inheritedPerms.can_read,
86 helperText: "Note: who can't download won't see it in the list"
87 },
88 showCanSee && { k: 'can_see', label:"Who can see", xl: 6, comp: WhoField, parent, accounts, inherit: inheritedPerms.can_see,