Fixed npe in isPersonAllowedToAccess in File