phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Phpgroupware-developers] iDots Template (was: DotGNU 0.1CD-ROMavail


From: Chris Weiss
Subject: RE: [Phpgroupware-developers] iDots Template (was: DotGNU 0.1CD-ROMavailable from CheapBytes.com)
Date: Thu, 06 Nov 2003 13:39:35 +0000

ah, that makes more sence.  in this case, $access is pased in as a permission, 
like
PHPGW_ACL_READ. If $grant includes the read bit, $grant & $access will evaluate 
to
true.  Same for $grants & PHPGW_ACL_PRIVATE, the rest is standard and's and or's
like you'd use in an if(), excet it stores the true/false in a variable instead 
of
evaluating it.

Don Graver (dgraver) (address@hidden) wrote:
>
>My apologies, $grants is not an array, it is simply a number like 31
>that specifies the user's rights.  However, I still don't understand the
>line in question.
>
>-- Don Graver
>
>
>> -----Original Message-----
>> From:
>> address@hidden
>> [mailto:address@hidden
>> org] On Behalf Of Don Graver (dgraver)
>> Sent: Thursday, November 06, 2003 1:55 PM
>> To: address@hidden
>> Subject: RE: [Phpgroupware-developers] iDots Template (was:
>> DotGNU 0.1CD-ROMavailable from CheapBytes.com)
>>
>>
>> Not to get in the middle of this software war of words, but I
>> was getting Reiner's emails twice as well, so I don't think
>> it was a BCC issue.
>>
>> By the way, I am working on trying to set up some ACL where a
>> user will have specified access to their own calendar instead
>> of the standard read/add/edit/delete that is already hard
>> coded (value 31).  I think I have figured out how to do this
>> the right way, but I was wondering if someone could explain
>> this line to me from the function 'check_perms' in
>> class.bocalendar.inc.php:
>>
>> $access =  $grants & $needed && (!$private || $grants &
>> PHPGW_ACL_PRIVATE);
>>
>> $grants is an array containing the user's rights
>> $needed is a variable passed to the function
>> $private is set if the event is private
>> PHPGW_ACL_PRIVATE is a standard variable defined in
>> /phpgwapi/inc/functions.inc.php
>>
>> However, I have no idea how this line is able to determine
>> what value $access should be.  The one '&' instead of the
>> standard two is throwing me off.  Thanks for the help.
>>
>> -- Don Graver
>>
>>
>> > -----Original Message-----
>> > From:
>> > address@hidden
>> > [mailto:address@hidden
>> > org] On Behalf Of Earnie Boyd
>> > Sent: Thursday, November 06, 2003 1:28 PM
>> > To: address@hidden
>> > Subject: Re: [Phpgroupware-developers] iDots Template (was:
>> > DotGNU 0.1 CD-ROMavailable from CheapBytes.com)
>> >
>> >
>> > <snmp headers>
>> > From: Reiner Jung <address@hidden>
>> > Reply-To: address@hidden
>> > To: address@hidden, address@hidden
>> > CC: address@hidden
>> > </snmp>
>> >
>> > If you're not on address@hidden then perhaps you're
>> > correct about
>> > the BCC.
>> >
>> > Earnie
>> >
>> > Chris Weiss wrote:
>> > > mind pointing out which ones?  cause the both have the same
>> > subject,
>> > > and as far as I can tell i'm only on this one.  I'm not so
>> > dense that
>> > > I didn't think about that at first, only thing I can
>> figure is that
>> > > he's BCC'ing me, which is extremely rude since he knows
>> > i've been on
>> > > the dev list for the last 2+ years.
>> > >
>> > > Earnie Boyd (address@hidden) wrote:
>> > >
>> > >>Chris Weiss wrote:
>> > >>
>> > >>>Reiner Jung (address@hidden) wrote:
>> > >>>
>> > >>>i really don't know what you are doing to cause this but I
>> > am getting
>> > >>>all your emails 2 times.  Please look into make it stop.
>> > >>>
>> > >>
>> > >>It's called cross posting and you are on both lists.
>> > >>
>> > >>Earnie
>> > >>
>> > >>
>> > >>
>> > >>_______________________________________________
>> > >>Phpgroupware-developers mailing list
>> address@hidden
>> > >>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>> > >>
>> > >
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Phpgroupware-developers mailing list
>> address@hidden
>> > > http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>> > >
>> >
>> > --
>> > http://www.mingw.org
>> > Powered by SourceForge <http://sourceforge.net/projects/mingw>
>> >
>> >
>> >
>> > _______________________________________________
>> > Phpgroupware-developers mailing list
>> > address@hidden
>> > http://mail.gnu.org/mailman/listinfo/phpgroupw> are-developers
>> >
>>
>>
>> _______________________________________________
>> Phpgroupware-developers mailing list
>> address@hidden
>> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]