On Sun, 2002-01-13 at 13:17, Tarjei Huse wrote:
> > > The Nadmin distro adds a few patches to midgard. These patches provide a
> > > few new functions to midgard. How hard would it be for someone to move
> > > them into the midgard main source? I'm trying to upgrade my Nadmin, and
> > > I guess I'll need these functions to get the group fundtions to work
> > > correctly.
> >
> > What kind of functions?
> The last patch, I do not understand, but maybe you do:
> --- access.c Wed Jun 6 16:49:55 2001
> +++ access.c.new Wed Jun 6 17:56:20 2001
> @@ -144,6 +144,16 @@
> #if HAVE_MIDGARD_SITEGROUPS
> ,mgd->sitegroup
> #endif
> + )
> + || mgd_exists_bool(mgd, "person",
> + "id=$d AND creator=$d AND username=''"
> +#if HAVE_MIDGARD_SITEGROUPS
> + " AND sitegroup IN (0,$d)"
> +#endif
> + , uid, mgd->user
> +#if HAVE_MIDGARD_SITEGROUPS
> + ,mgd->sitegroup
> +#endif
> );
> }
access.c is not part of php4, but of lib, and lives in lib/src/ .
The patch will not apply cleanly as the midgard struct had a slight
change. The correct patch would now be:
#if HAVE_MIDGARD_SITEGROUPS
,mgd->current_user->sitegroup
#endif
+ )
+ || mgd_exists_bool(mgd, "person",
+ "id=$d AND creator=$d AND username=''"
+#if HAVE_MIDGARD_SITEGROUPS
+ " AND sitegroup IN (0,$d)"
+#endif
+ , uid, mgd->current_user->id
+#if HAVE_MIDGARD_SITEGROUPS
+ ,mgd->current_user->sitegroup
+#endif
);
}
wkr,
Armand.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]