Don't allow opening of files we know cannot be edited; closes #2286
This commit is contained in:
parent
906cfce81c
commit
d87438621f
6 changed files with 65 additions and 65 deletions
|
@ -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[]> => {
|
||||
|
|
Reference in a new issue