Fix code error from 70525cc3e7485ea874d5f90518cf00f3625f9c65

Missing `user` in `if` statement.