|
@@ -7,7 +7,6 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -31,7 +30,6 @@ public class UploadFileController extends BaseController {
|
|
|
private UploadFileService uploadFileService;
|
|
|
|
|
|
@PostMapping(value = "uploadFile")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('uploadFile','system')")
|
|
|
public Object uploadFile(@ApiParam(value = "上传的文件", required = true) @RequestParam("file") MultipartFile file) {
|
|
|
try {
|
|
|
if (file != null && StringUtils.isNotBlank(file.getOriginalFilename())) {
|