I just got this beautiful message while trying to configure WooCommerce Xero integration on my local PC.
Just a blank page with “Cheatin’ uh?”
Very informative, isn’t it? Well I’m not “cheatin”, I’m legitimately using your products and selling it to my customers.
Not that easy to find in the code because searching for “Cheatin’ uh?” yields no results. The string in the code is “Cheatin’ uh?”.
The check was to see whether current_user_can( 'manage_woocommerce' )
I’m normally logged in as admin on my development environment, but I had been testing a new role so was logged in as a test user with limited rights.
I suppose it’s cool writing an abbreviated message like “Cheatin’ uh?”, but personally I think it would be far more professional to say something like “you do not have permission to perform that function”. Boring, I guess – but gets the message across without accusing someone of cheating when they’re not cheating.
Anyway, that’s just boring ol’ me. If you get that “Cheatin’ uh?” message, check that you’re logged in as the correct user and if you are and you need to search the code for other possibilities, search for “Cheatin’ uh?” or just “Cheatin”.