[User] Add Sanity check to user_hasperm. Fixes errors when flags isnt set for whatever reason.