Fix bug 16506: Honor read access given by ACLs.

For this, use "access" instead of stat.
Merge remote-tracking branch 'htgoebel/public/7.8' into public/7.9

Change-Id: I580031ce8970729a3467b06bcbd999b02836e56d