Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:22 am EDT

Geeklog Forums

Privileges help please


Status: offline

solomon

Forum User
Newbie
Registered: 10/15/04
Posts: 8
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Don't forget the topic permissions. See the FAQ.

bye, Dirk
 Quote

Status: offline

solomon

Forum User
Newbie
Registered: 10/15/04
Posts: 8
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
 Quote

Status: offline

grizel

Forum User
Newbie
Registered: 11/18/04
Posts: 4
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! Just no one has answered it yet!

 Quote

Status: offline

caltman

Forum User
Junior
Registered: 07/12/04
Posts: 25
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)
 Quote

Status: offline

grizel

Forum User
Newbie
Registered: 11/18/04
Posts: 4
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.
 Quote

Status: offline

caltman

Forum User
Junior
Registered: 07/12/04
Posts: 25
I'm afraid that's all I have to offer.

Regards,
Carter
 Quote

Status: offline

zipstart

Forum User
Chatty
Registered: 09/13/04
Posts: 60
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.
 Quote

grizel

Anonymous
I figured it out...

Story.php

Text Formatted Code
 } 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
Text Formatted Code
} 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.
 Quote

grizel

Anonymous
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;
 Quote

grizel

Anonymous
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
 Quote

Status: offline

solomon

Forum User
Newbie
Registered: 10/15/04
Posts: 8
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 Smile
 Quote

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