DSHack

Archive Generated December 23rd, 2018
Forum softwear glitches
Author Posted on 2015/07/04
#38
SGC Yellow I discoverd a very dangerous glitch! So I, was looking at my profile and, right by my user name are two buttons "Edit" and, "Warn" so i looked at another user's profile and, the buttons were still there! Aren't those supposed to be Admin only?
Author Posted on 2015/07/04
#39
Gericom These are supposed to be for moderators and admins only.
Author Posted on 2015/07/04
#40
MKGirlism Yes, I already got notified about that.
Why this happens, is weird, because you should only be able to see these things, if you're a Moderator, or yourself, in the case of "Edit".

I'm already looking at it, don't worry about Clicking them as being a regular Member, those Buttons won't work for you, anyway.
Author Posted on 2015/07/04
#41
MKGirlism Nailed it!

Changed:
if ($cookgroup >= 1 || $owner) echo " (Edit | Warn)";

Into:
if ($cookgroup >= 1 || $cookuser == $uuname) echo " (Edit)";
if ($cookgroup >= 1) echo " | (Warn)";

This happened, because the "owner" Variable points to the Logged in User, and since the owner is you, you'll see these Options on all Profiles.
Another problem was, I forgot to separate these things.