Access permission check added