I am trying to set permissions for users to only have access to particular files in a directory based on their employment status. I set one table with their name, username, password and access_level. I set the access level to a, b, c, d etc. A user with level A should be able to view files 1.xls, 2.xls, 3.xls, 4.xls and 5.xls. Where a user with a level of B should only have access to 1, 2, 3 and 4 and so on.
In another table I set the association of access level. Column access_level stores the A, B, C, D etc. Column files contains 1, 2, 3, 4, 5 or the file name (without extension) that that level should be able to view. I query the user table to retrive that persons level then want to only display files they should be able to view.
I have used cfdirectory to list the files in the directory. The file names will not change however the number oof files may vary. I set the access level files permision 1, 2, 3, 4 to a list. I set the file names in the directory to a list.
How can I only display the files listed in the access level.
Hope I have been clear. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
In another table I set the association of access level. Column access_level stores the A, B, C, D etc. Column files contains 1, 2, 3, 4, 5 or the file name (without extension) that that level should be able to view. I query the user table to retrive that persons level then want to only display files they should be able to view.
I have used cfdirectory to list the files in the directory. The file names will not change however the number oof files may vary. I set the access level files permision 1, 2, 3, 4 to a list. I set the file names in the directory to a list.
How can I only display the files listed in the access level.
Hope I have been clear. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic