docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 879 forks source link

Fix DISABLE_TOKEN_AUTH flag check in docker_registry/toolkit.py #921

Open guoxiuyan opened 9 years ago

guoxiuyan commented 9 years ago

When we set DISABLE_TOKEN_AUTH to true, there are two functions that should check the flag, but only one function does.

So we add the check in both check_token() and validate_parent_access().

Signed-off-by: Guo Xiuyan guoxiuyan@huawei.com

coveralls commented 8 years ago

Coverage Status

Changes Unknown when pulling e682fda3c386d7cd87714d076e344b309c54e751 on guoxiuyan:Fix_Token_True into \ on docker:master**.