PDA

View Full Version : Access to selected files


LittleMouse
15-09-06, 01:06 AM
Please, help !!!
I can't manage to control access to files items.
I have
- 1 company.
- several projects : project A, project B, project C
- for each project, I have several files : file A1, file A2, file A3, file B1, file B2, file C1, ...

I whished an user could see all projects and NOT see all files EXCEPT file B2.

I have created an user with a rule without permission (to log in), and who has the following permissions :
companies: all, allowed (access, view)
projects : all, allowed (access, view)
tasks : all, allowed (view)
files : all, allowed (access)
files : file B2, allowed (view)

but it doesn't work : the user can access & view all projects and compagnies, he can access the files module but can't see any file.

If I replace the 2 files permissions by :
files : all, allowed (access)
files : file A1, deny (view)
files : file A2, deny (view)
etc. except for B2 file
It works (the user see file names but can't open them).
But I can't do that because there can be dozens of files !

what can I do ? :confused: