class Files{ constructor(){ this.name = "files"; } static allowAddNew(){ return userrights.has("files.edit") && !sync.isActive("files"); } static allowEdit(){ return userrights.has("files.edit"); } static allowDelete(ingoreSync=false){ return userrights.has("files.delete") && (!sync.isActive("files") || ingoreSync); } static allowClose(){ return userrights.has("files.close"); } static allowBlacken(){ return userrights.has("files.blacken"); } static allowShare(){ return userrights.has("files.share"); } static allowFinishmanhunt(){ return userrights.has("manhunt.finish"); } static allowFinishEntry(){ return userrights.has("filesentry.finish"); } static GetColumns(){ return ["name","alias","phone","id"]; } static GetPropertyHTML(data){ if(data.extraData.properties == null || data.extraData.properties == undefined){ return ""; } else{ let tbody = ``; for(let i=0; i ${row.label}