by sanderp » Fri Dec 28, 2007 3:33 am
Hi Jan,
I have checked the enhancements and though it is a lot more flexible than it was, as far as i can see (please correct me if i'm wrong) it still needs a table structure that reflects what should be shown in the tree.
In the application that i'm building, a user can have access to multiple "administrations", but could have different rights in each administration. The navigation tree should only show the forms that the user is supposed to have access to.
So, for example:
root
|-Administration 1
| |--invoices
| |--documents
| |--payments
| |--customers
|
|-Administration 2
| |--documents
| |--customers
A user's rights are based on a separate group of tables, that handle group and user stuff.
If i put everything below the "administration" level in a table, i guess i could add a filter on that table based on a users rights, but that same filter would then work for both administrations. I can't think of a "trick" that would solve this. Am i overlooking something?