In MODx what does a Sudo User enable?

I was wondering what the Sudo User enables in MODx that all the regular permissions don’t already allow? Like if I have all the permissions checked for a sub-admin group, but they are not sudo users, are they still limited from doing certain things?

Technically that is implemented as something like:

function hasPermission($permission) {
    if ($user->isSudo) {
       return true;
    }
    return $user->actuallyCheckPoliciesForUser($permission);
}

So a user with all permissions checked is functionally equivalent to a sudo user.

1 Like