|
@@ -150,7 +150,8 @@ $(document).ready(() => {
|
|
|
formData.append('size', filesize);
|
|
|
formData.append('file[]', file);
|
|
|
}
|
|
|
- if (auditList.findIndex(item => item.uid === parseInt(accountId)) === -1 && !touristPermission) {
|
|
|
+ // if (!(change_uid === accountId || (auditors2 && auditors2.findIndex(item => item.uid === parseInt(accountId)) !== -1) || touristPermission)) {
|
|
|
+ if (!filePermission) {
|
|
|
return toastr.error('暂无权限上传!');
|
|
|
}
|
|
|
postDataWithFile(window.location.pathname + '/file/upload', formData, function (data) {
|