mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 21:28:00 +08:00
update verifyResourceName
This commit is contained in:
parent
4a69289c41
commit
33be5ff9dd
@ -195,9 +195,9 @@ public class ResourcesController extends BaseController{
|
||||
) {
|
||||
try {
|
||||
logger.info("login user {}, verfiy resource alias: {},resource type: {}",
|
||||
loginUser.getUserName(), alias);
|
||||
loginUser.getUserName(), alias,type);
|
||||
|
||||
return resourceService.verifyResourceName(alias, type);
|
||||
return resourceService.verifyResourceName(alias,type,loginUser);
|
||||
} catch (Exception e) {
|
||||
logger.error(VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg(), e);
|
||||
return error(Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getCode(), Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg());
|
||||
|
Loading…
Reference in New Issue
Block a user