Show error when photos permissions are disallowed.

Will fix #640.