|
@@ -21,10 +21,7 @@ import org.apache.dolphinscheduler.api.dto.ScheduleParam;
|
|
|
import org.apache.dolphinscheduler.api.enums.Status;
|
|
|
import org.apache.dolphinscheduler.api.utils.PageInfo;
|
|
|
import org.apache.dolphinscheduler.common.Constants;
|
|
|
-import org.apache.dolphinscheduler.common.enums.FailureStrategy;
|
|
|
-import org.apache.dolphinscheduler.common.enums.Priority;
|
|
|
-import org.apache.dolphinscheduler.common.enums.ReleaseState;
|
|
|
-import org.apache.dolphinscheduler.common.enums.WarningType;
|
|
|
+import org.apache.dolphinscheduler.common.enums.*;
|
|
|
import org.apache.dolphinscheduler.common.model.Server;
|
|
|
import org.apache.dolphinscheduler.common.utils.DateUtils;
|
|
|
import org.apache.dolphinscheduler.common.utils.JSONUtils;
|
|
@@ -528,7 +525,8 @@ public class SchedulerService extends BaseService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (loginUser.getId() != schedule.getUserId()) {
|
|
|
+ if (loginUser.getId() != schedule.getUserId() &&
|
|
|
+ loginUser.getUserType() != UserType.ADMIN_USER) {
|
|
|
putMsg(result, Status.USER_NO_OPERATION_PERM);
|
|
|
return result;
|
|
|
}
|