[turba] Re: Shared Address Books (Multi-User)
Jorge Manuel B. S. Vicetto
jmbsvicetto at esenfah.pt
Wed Nov 5 09:28:52 PST 2003
Hi Marcus.
Thank you for your suggestion. It works like a charm!!! :-))
For all of those that aren't very fluent in PHP and don't know very well the
Horde framework, like me, I have a small note: Don't forget to include the
Group.php file.
I had to put the following line in the beggining of the sources.php file, after
the php openning tag and comments:
include "../lib/Group.php";
I have another question now. ;-) To enable the users of the group to change
contacts created by other users are we required to define them as admins? I
ask, because I've tried to define the list as:
...
'public' => true,
'readonly' => false,
'admin' => array(),
'export' => true
...
But this way, although all users of the list can see all contacts, they can't
change a contact created by other user. To work, I had to add all users to the
admin list.
...
'public' => true,
'readonly' => false,
'admin' => array('usera', 'userb', 'userc'),
'export' => true
...
Is it possible to add to the admin list the group and not the users? That would
save some work and would be more flexible. Please correct my mistakes.
Thank You.
Jorge.
------------------------------------------
Jorge Manuel B. S. Vicetto
Network Manager and Systems Administrator
Angra do Heroísmo Nursing School (ESEnfAH)
------------------------------------------
Quoting "Marcus I. Ryan" <marcus at horde.org>:
> There is no internal code to do what you want to do. However, the config
> files are PHP and you can add some logic to them. You didn't mention which
> version of Turba/Horde you use (or I skimmed too fast) but with the current
> CVS I have created a group called WeddingList and changed sources.php by
> wrapping the weddinglist addressbook definition with:
>
> $groups = new Group;
> if ($groups->userIsInGroup(Auth::getAuth(), 'WeddingList')) {
> $cfgsources['wedding'] = array(
> [addressbook details here]
> );
> }
>
> It's defined as fully public, but the definition only exists for users in the
> group.
>
> --
> Marcus I. Ryan, marcus at horde.org
> -----------------------------------------------------------------------
> "Love is a snowmobile racing across the tundra and then suddenly it
> flips over, pinning you underneath. At night, the ice weasels come."
> -- Matt Groening
> -----------------------------------------------------------------------
>
>
> Quoting "Jorge Manuel B. S. Vicetto" <jmbsvicetto at esenfah.pt>:
>
> > Hi!
> >
> > I've sent this mail last week, but I still haven't received any reply. :=(
> > Can someone clear my doubts or point me to any source of information?
> > Thank you!
> >
> > ------------------------------------------
> >
> > Jorge Manuel B. S. Vicetto
> > Network Manager and Systems Administrator
> > Angra do Heroísmo Nursing School (ESEnfAH)
> >
> > ------------------------------------------
> >
> >
> > Quoting "Jorge Manuel B. S. Vicetto" <jmbsvicetto at esenfah.pt>:
> >
> > > Hi!
> > >
> > > First let me congratulate everyone working on Horde and all its projects
> --
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the turba
mailing list