Backend User Roles issue

Can’t manage administrators if only you not a super admin.

In OctoberCMS (Version 3+) you have new logic “Hide users above rank, not including self” but new column sort_order in backend_user_roles is null by default and this logic not work.

$q->orWhereHas('role', function($q) {
    $q->where('sort_order', '>', $this->user->role->sort_order);

Start working only after manually change ordering in roles section.

Hi @pittss,

That’s right, when upgrading, you need to rank the roles by sorting the list at least one time.

1 Like