Logs for

Page 130 of 211,240, showing 20 records out of 4,224,782 total, starting on record 2,581, ending on 2,600

# At Username Text
# Aug 7th 2008, 07:48 alkemann only have rights on files, only show folders where user has files with read rights ?
# Aug 7th 2008, 07:48 lqdice__ or rather . i just want to get the children of a node.. is that easy enough? so if they are at /SomeProgram folder i just want to show its children
# Aug 7th 2008, 07:48 lqdice__ yes
# Aug 7th 2008, 07:49 lqdice__ so if I am in /SomeProgram and it has 30 folders w/ 30 files each but the user only has access to 1 file.. it should only show that 1 folder
# Aug 7th 2008, 07:49 alkemann the good thing about this last method is you can easily only show files for one folder at a time, but show the entire folder structure (like windows)
# Aug 7th 2008, 07:49 lqdice__ which method.. folder actsAs Tree, folder hasMany Files ?
# Aug 7th 2008, 07:49 alkemann yes
# Aug 7th 2008, 07:50 alkemann u do $tree = $this->Folder->find('threaded'); $folder = $this->Folder->find($id); the first with recursive -1 and the second with 1
# Aug 7th 2008, 07:50 lqdice__ well I also have to put conditions to make sure the user has access to it (which is the part im worried about)
# Aug 7th 2008, 07:51 alkemann it will be a little complicated, but should be doable
# Aug 7th 2008, 07:51 lqdice__ the SQL will have to dig all the way to the leaf and if I have access to the leaf, give access to the parent
# Aug 7th 2008, 07:51 lqdice__ basically
# Aug 7th 2008, 07:51 lqdice__ have you seen anyone do something like this before?
# Aug 7th 2008, 07:52 Ins|de hi there, i could change layout files with $this->layout variable right? can i do it on app_controller or just on the extended controller?
# Aug 7th 2008, 07:52 alkemann lqdice__: not that i recall atm
# Aug 7th 2008, 07:52 lqdice__ Ins|de: you should be able to do it in app_controller beforeFilter
# Aug 7th 2008, 07:53 alkemann can even do it in view
# Aug 7th 2008, 07:53 lqdice__ alkemann: this will def be interesting
# Aug 7th 2008, 07:53 alkemann i look forward to seein how it turns out :)
# Aug 7th 2008, 07:53 alkemann you should try to make behavior for it so it can be reused