ahh - I bet the above logic it isnt kosher when profile has a different login name / public name (which most of my members do).
so now I'm testing this revision to my tweak posted above:
Quote
Originally posted by RoxSeibert:
here's the few fixes I'm using on v1.9.3
- To allow moderators and admins to edit links Find:
Code
if (($user_profile[8] ne 'Administrator') && ($username ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;}
Replace with
Code
if (($user_profile[8] ne 'Administrator') && ($user_profile[8] ne 'Moderator') && ($pubname ne $linearray[4])) {&StandardHTML2("You must be a moderator or the person who added this link, to edit the record"); exit;}
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.