Posted on: 10/15/04 07:05am
By: solomon
OK - still pretty new to GL so bear with me
1) I've made a group who can only post to stories and events. I've called this group CMTusers
2) I've made a second group called CMTadmin which has privs to access stories, events, users and static pages
3) When a CMTuser posts a story/event and forgets to check the 'group edit' box at the bottom, everyone else in the CMTuser group cannot edit the story/event. However, I want the CMTadmin group to be able to edit it.
4) I do not seem to be able to achieve point (3) regardless of which check boxes I poke at - if 'group edit' is not checked by CMTuser then neither CMTuser or CMTadmin can edit the story.
5) Obviously, if I log on as main admin I can edit anything and everything.
Clearly, I don't want to give anyone root access apart from myself. Can anyone tell me what I should do to be able to achieve this set up as I'm sure it must be possible and I just haven't quite got my head round setting the permissions yet.
Ta very much all
Privileges help please
Posted on: 10/15/04 12:56pm
By: Dirk
Don't forget the topic permissions. See
the FAQ[*1] .
bye, Dirk
Privileges help please
Posted on: 10/21/04 10:49am
By: solomon
Cheers Dirk.
However, as far as I'm aware I have set the topic permissions correctly - unless I just completely haven't got to grips with the access privs yet (which is quite likely)
I'll reword my enquiry...
When someone posts a story and does not check the group edit box, is it possible to set up another user who can edit that story without being given root privs? If so, how so?
I've been poking at this one for ages now and I feel like I've tried every permutation. I'm afraid I just don't seem to be able to extrapolate the FAQ page to fit my requirements properly .
If anyone can give me a few specific instructions it would be greatly appreciated -
thanks all
Privileges help please
Posted on: 11/18/04 11:07pm
By: grizel
Yes i am seeing a number of other queries abotu this very thing, and 95% of th em were never answered, this is exactly what I need too. HOW TO SET GROUP EDIT ON across the board???
And links admins cannot admin links, what good is that? They can only admin th ier own links and any user can do that. Certainly there is a fix wether it's DB based or code.
Please
people have been asking for a year[*2] ! Just no one has answered it yet!
Privileges help please
Posted on: 11/18/04 11:43pm
By: caltman
I think what you are looking for is in admin/story.php around line 186 or 187.
Change $A['perm_group'] = 2; to $A['perm_group'] = 3;
Regards,
Carter (I reserve the right to be corrected by more knowlegeble people)
Privileges help please
Posted on: 11/19/04 12:17am
By: grizel
that just seems to remove the drop down from the topic list.,aking it s set thing.
I want to check ON Group E, the only one that is NOT checked.
Privileges help please
Posted on: 11/19/04 12:37pm
By: caltman
I'm afraid that's all I have to offer.
Regards,
Carter
Privileges help please
Posted on: 11/19/04 01:16pm
By: zipstart
caltman is right...are you sure you made the change properly to the proper file? Search your admin files for $A['perm_group'] = 2 and change them all to 3.
Privileges help please
Posted on: 11/19/04 01:37pm
By: Anonymous (grizel)
I figured it out...
Story.php
} elseif ($mode == 'edit') {
$A['sid'] = COM_makesid();
$A['show_topic_icon'] = 1;
$A['uid'] = $_USER['uid'];
$A['unixdate'] = time();
$A['commentcode'] = $_CONF['comment_code'];
$A['postmode'] = $_CONF['postmode'];
$A['statuscode'] = 0;
$A['featured'] = 0;
$A['owner_id'] = $_USER['uid'];
$A['group_id'] = DB_getItem ($_TABLES['groups'], 'grp_id',
"grp_name = 'Story Admin'");
$A['perm_owner'] = 3;
$A['perm_group'] = 2;
$A['perm_members'] = 2;
$A['perm_anon'] = 2;
$access = 3;
$A['perm_group'] = 2;
In links I did that but also on my links I set the $access to 5 for editing... 5 removes the pop up list of groups for choosing and LOCKs it. It now has a static "Links Admin" for the group access.
Link.php
} else {
if ($mode == 'editsubmission') {
$result = DB_query ("SELECT * FROM {$_TABLES['linksubmission']} WHERE lid = '$lid'");
$A = DB_fetchArray($result);
}
$A['hits'] = 0;
$A['owner_id'] = $_USER['uid'];
$A['group_id'] = DB_getItem($_TABLES['groups'],'grp_id',"grp_name = 'Link Admin'");
$A['perm_owner'] = 3;
$A['perm_group'] = 2;
$A['perm_members'] = 2;
$A['perm_anon'] = 2;
$access = 3;
$A['perm_group'] = 2;
$access = 3;
Works the same on the other areas as wll, just have to set all your old stories and links "perm_group" fields to 3 , I did it in phpadmin, which I hate using but saved time.
Privileges help please
Posted on: 11/19/04 01:39pm
By: Anonymous (grizel)
Not logged in and it ate my code...
This is what I was saying: with the above, if someone with edit powers would like to fix that...
$A['perm_group'] = 2;
$access = 3;
Privileges help please
Posted on: 11/19/04 01:41pm
By: Anonymous (grizel)
Again, I guess it just doesn't liek pointy brackets... ok here we go!
$A['perm_group'] = 2; -- Set to 3 to Group EDIT check box ON by default
$access = 3; -- Set to 5 to remove pop up of group access choices
Privileges help please
Posted on: 11/23/04 10:15am
By: solomon
Fantastic! Just tweaked $A['perm_group'] = 3; and everything works fine.
This is a workaround for the privs problem I had but it's a perfectly satisfactory workaround - cheers people