Don't allow opening of files we know cannot be edited; closes #2286

This commit is contained in:
Dane Everitt
2020-08-30 10:25:48 -07:00
parent 906cfce81c
commit d87438621f
6 changed files with 65 additions and 65 deletions

View File

@@ -8,11 +8,11 @@ export interface FileObject {
size: number;
isFile: boolean;
isSymlink: boolean;
isEditable: boolean;
mimetype: string;
createdAt: Date;
modifiedAt: Date;
isArchiveType: () => boolean;
isEditable: () => boolean;
}
export default async (uuid: string, directory?: string): Promise<FileObject[]> => {