Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 11:12 pm EST
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
Regards
D Web Studio - www.d-webstudio.net
15
17
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
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.
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.
30
16
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
Regards
D Web Studio - www.d-webstudio.net
21
16
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
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.
if (SEC_inGroup('Root', $uid)) {
return 3;
}
One of the Geeklog Core Developers.
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 accessif (SEC_inGroup('Root', $uid)) {
return 3;
}
One of the Geeklog Core Developers.
12
20
Quote
All times are EST. The time is now 11:12 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