Need help with access permissions logic
Posted: Mon Nov 14, 2005 4:20 pm
I'm trying to turn the employee portion of my company's website into something more dynamic.
I've sat here and thought about for awhile now... and maybe I started thinking about it too hard or in reverse or something else. I'm burned out but I know there is probably a simple answer.
I have a side menu in my employee section. The menu consists of two parts documents that everyone can see [company wide] and documents for each department [department specific].
The company wide documents I don't care about protecting from any employee. Basically if you have a valid employee account, you can see these.
Now comes my hurdle.
Based on some form of access structure(values stored in a db), I want to be able to display each department section to certain employees who have access and certain employees in that department would have restricted access to certain documents.
Sounds like the job of a two-dimensional array but I don't know...
I've sat here and thought about for awhile now... and maybe I started thinking about it too hard or in reverse or something else. I'm burned out but I know there is probably a simple answer.
I have a side menu in my employee section. The menu consists of two parts documents that everyone can see [company wide] and documents for each department [department specific].
The company wide documents I don't care about protecting from any employee. Basically if you have a valid employee account, you can see these.
Now comes my hurdle.
Based on some form of access structure(values stored in a db), I want to be able to display each department section to certain employees who have access and certain employees in that department would have restricted access to certain documents.
Sounds like the job of a two-dimensional array but I don't know...