امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
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
is_staff, and came across some oddly-worded code which makes me suspect an error in the canEdit() function:Code:
کد:
if ($this->is_admin && $this->is_moderator && $this->is_staff)
{
// moderators can't edit admins/mods/staff
return false;
}
Read more
