The admin user (with the user ID of 1)

Permalink 1 user found helpful
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?

tdausner
 
ayurmedia replied on at Permalink Reply
Perfekt, works für me. It's annoying that SuperUser privileges are hardcoded in the src core of C5.

Changing Page-Type "Output" templates should be possible as Administrator, not only User #1.

Would be good to be in core and configurable, now i have to re-apply the patch each time C5 gets a Core Update.
tdausner replied on at Permalink Reply
tdausner
Thank you for feedback. Yes, it's a pitty this is not in core.

In concrete5 8.5 the line number has changed: line 324 is correct now