Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 10:38 pm EDT

Geeklog Forums

Special group


Status: offline

alb3rt

Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.
 Quote

Status: offline

alb3rt

Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
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
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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;
    }

One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 10:38 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