The admin user (with the user ID of 1)

Permalink
What a pitty! The admin user (or superuser) priviledge is not covered by the authorisation scheme in c5.7.

Solution: a small code modification allows a group "SuperUser" to take effect to authorise superuser facilities to any user.

file /concrete/src/User/User.php
265,266c265
<         $gid = Group::getByName("SuperUser");
<         return $this->superUser || ( $gid !== null && $this->inGroup($gid) ); 
---
>         return $this->superUser;

Any chance to get this (or similar) into the next release?

ThomasDausner
View Replies: