I am building an application with a user login and various functions.
I want to use a flexible structure to load the current Users privileges into.
eg the Functions could be:
Accts Receivable, etc
For each Function the User can be assigned privileges:
When the user logs in, I currently retrieving his functions and privileges from the database
and I would like to iterate each row and load them in a structure that can be used while navigating the application.
Does anyone have any thoughts on this? I first thought an array but I would need to iterate it to find the row with the name of the function.
A structure would be better but I would need to declare each function at startup before reading the database.