phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [phpGroupWare-developers] [code cleaning] Missing public function ge


From: Maât
Subject: Re: [phpGroupWare-developers] [code cleaning] Missing public function get_subs in class.locations.inc.php
Date: Sun, 26 Oct 2008 16:07:26 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080929)

Sigurd Nes a écrit :
> Maât wrote:
>   
>> so if i understand well :
>>
>> ( i put the sql definition of location table in footer to help )
>>
>> the name field uses a dns approach to define locations and sub locations
>>
>> then for a given app the sub locations for .location1 will be :
>>
>> .location1.sublocation1
>> .location1.sublocation2
>> .location1.sublocation3
>>
>> the remaining question is :
>>
>> should this include sub-sub-locations ?
>>
>> for example :
>>
>> .location1.sublocation3.sussublocation1
>> .location1.sublocation3.sussublocation2
>> .location1.sublocation3.sussublocation3
>>
>> iow :
>> -- should i request all name fields beginning with ".location1." (which
>> brings every sublocations)
>>     
>
> Yes - that is the idea.
> You give rights on all locations down the tree inherited from the level you 
> are
> operating on.
>
> To add some extra control - you might want to add a flag for
> "enable_inheritance" that you send along from the setting-form (a checkbox)
>
> S
>   
the current prototype for get_subs is :

public function get_subs($appname, $location)

and it's supposed to return an array of strings :

(see Line 390 of class.acl.inc.php : 
http://svn.savannah.gnu.org/viewvc/core/trunk/phpgwapi/inc/class.acl.inc.php?annotate=18965&root=phpgroupware
 )

so i dont understand where the flag is supposed to go :-/


regards,
maat









reply via email to

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