handle private access
Merge pull request #4 from twinbit/handle-private-files

Handle private resource access