The Paywall That Wasn't: Debugging a 919-Video Leak on WordPress
The ticket was three sentences long: "Some paid members can't play the on-demand videos. They log in,...
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 126345) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Vicente G. Reyes Posted on Jun 30 • Originally published at vicentereyes.org The Paywall That Wasn't: Debugging a 919-Video Leak on WordPress #wordpress #security #webdev #php The ticket was three sentences long: "Some paid members can't play the on-demand videos. They log in, click a video, and still get told they need a membership. Can you fix it tonight?" I fixed it tonight.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).