Fix files/show permissions check, fix #569.