Skip to content

Commit

Permalink
修改 auth demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Apr 13, 2018
1 parent ce3b25e commit fcd6f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/sts-post-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ function isActionAllow(method, pathname) {
// TODO 这里控制是否允许操作当前文件
}

// TODO 这里判断用户允许上传到什么文件路径,做好文件权限控制限制

return allow;

}
Expand Down
2 changes: 2 additions & 0 deletions server/sts-post-object.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function isActionAllow($method, $pathname, $query, $headers)
$allow = true;
}

// TODO 这里判断用户允许上传到什么文件路径,做好文件权限控制限制

return $allow;

}
Expand Down

0 comments on commit fcd6f0a

Please sign in to comment.