Can I have a group with privileges similar to root without being root? I mean, a group that can edit articles even if they don't have group editing enabled.
Regards
Re: Special group
Posted on: 09/05/19 12:51pm By: Laugh
If I understand what you mean....
You want a user that can edit articles that are not the owner like root can even if the articles themselves only have edit access enabled for the owner and not the group?
No you can't. Edit access has to be enabled for the group first when the story is saved. The user also has to have access to the topic the article belongs to as well to edit it.
Re: Special group
Posted on: 09/06/19 06:24am By: alb3rt
I understand how groups work, what is not clear to me is how root acquires total privilege, which is capable of editing even if group editing is not enabled. I was checking the root group and what I observed is that all the boxes have been inhabited.
Regards
Re: Special group
Posted on: 09/06/19 10:44am By: Laugh
It is hard coded in a function.
In the lib-security file, the function SEC_hasAccess checks if the logged in user belongs to the root group. if they do, then they automatically get edit access.
Text Formatted Code
// If user is in Root group then return full access
if (SEC_inGroup('Root', $uid)) {
return 3;
}