ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 26,860
- Points
- 823
Reputation:
I was just exploring the code to check the impact of
Code:
If I'm interpreting the comment correctly, the routine should return false if any of the flags...
Read more
Continue reading...
is_staff
, and came across some oddly-worded code which makes me suspect an error in the canEdit() function:Code:
Code:
if ($this->is_admin && $this->is_moderator && $this->is_staff)
{
// moderators can't edit admins/mods/staff
return false;
}
Read more
Continue reading...