Skip to content

Commit

Permalink
fix: incorrect name in premision of delete API
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Feb 18, 2022
1 parent 2699a00 commit d9a4f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/FHIRApiService/condition-delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = async function(req, res, resourceType, paramsSearch) {
}
return res.status(code).send(item);
};
if (!user.checkTokenPermission(req, resourceType, "search-type")) {
if (!user.checkTokenPermission(req, resourceType, "delete")) {
return doRes(403,handleError.forbidden("Your token doesn't have permission with this API"));
}
let queryParameter = _.cloneDeep(req.query);
Expand Down
2 changes: 1 addition & 1 deletion api/FHIRApiService/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = async function(req, res, resourceType) {
}
return res.status(code).send(item);
};
if (!user.checkTokenPermission(req, resourceType, "detele")) {
if (!user.checkTokenPermission(req, resourceType, "delete")) {
return doRes(403,handleError.forbidden("Your token doesn't have permission with this API"));
}
let resFunc = {
Expand Down

0 comments on commit d9a4f9a

Please sign in to comment.