Welcome to Geeklog Sunday, September 15 2019 @ 06:48 pm EDT

Geeklog Forums

Special group


Status: offline

alb3rt

Forum User
Chatty
Registered: 30/10/06
Posts: 63
Location:Mexico City
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
D Web Studio - www.d-webstudio.net

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1376
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.

One of the Geeklog Core Developers.

Status: offline

alb3rt

Forum User
Chatty
Registered: 30/10/06
Posts: 63
Location:Mexico City
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
D Web Studio - www.d-webstudio.net

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1376
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.

PHP Formatted Code
    // If user is in Root group then return full access
    if (SEC_inGroup('Root', $uid)) {
        return 3;
    }

One of the Geeklog Core Developers.

All times are EDT. The time is now 06:48 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content