UserFile permission check fixed