fix permission check

fix self and other items permission check.