Skip to content

Commit

Permalink
fix AddTask auth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jarod committed Aug 20, 2020
1 parent e8d6d53 commit b745b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controller/task/TaskController.js
Expand Up @@ -148,7 +148,7 @@ TaskController.addTask = async (ctx) => {

let server = await ServerService.getServerConfById(item.server_id);

if (!await AuthService.hasDevAuth(server.application, server.serverName, ctx.uid)) {
if (!await AuthService.hasDevAuth(server.application, server.server_name, ctx.uid)) {
ctx.makeNotAuthResObj();
return;
}
Expand Down Expand Up @@ -186,4 +186,4 @@ TaskController.delTask = async (ctx) => {
}
};

module.exports = TaskController;
module.exports = TaskController;

0 comments on commit b745b00

Please sign in to comment.