Is this an error in Entity/User.php?

Status
This content is read-only, or is not open for further replies.

Neilski

Guest
I was just exploring the code to check the impact of 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;
                }
If I'm interpreting the comment correctly, the routine should return false if any of the flags...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.

Forum statistics

Threads
64,865
Messages
97,062
Members
61,825
Latest member
woahehe
Top Bottom