Welcome to Geeklog Thursday, November 21 2019 @ 06:55 am EST

Geeklog Forums

Special group


Status: offline

alb3rt

Forum User
Chatty
Registered: 30/10/06
Posts: 64
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: 27/09/05
Posts: 1384
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
Chatty
Registered: 30/10/06
Posts: 64
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: 27/09/05
Posts: 1384
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.

[code] // If user is in Root group then return full access
if (SEC_inGroup('Root', $uid)) {
return 3;
}[/code]
One of the Geeklog Core Developers.
 Quote

All times are EST. The time is now 06:55 am.

  • 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