ppadilla
Posts: 5
|
| Posted: 08/11/2004, 10:38 AM |
|
In the builders the access priveledges are defined statically.
I want to create a table with groups. I want to create a group id in a table and define the pages that they are allowed to view instead of statically defining it from the builder
Has anyone done this?
|
 |
 |
NR
|
| Posted: 08/22/2004, 6:55 PM |
|
Not really, but you could try this approach:
Define basic groups for the project needs. At the page level grant access to all, or most of, the groups. Define the tables and populate the 'groups' you need, how you need. Then build a function to be called from the before_show or after_initialize and include it in all the pages. This function will perform your particular verifications and redirect the user if not allowed. He will never see the page and you can duplicate the usual behavior for unauthorized access.
|
|
|
 |
ppadilla
Posts: 5
|
| Posted: 08/22/2004, 7:20 PM |
|
Excellent advice NR! Thanks!
|
 |
 |
dataobjx
Posts: 181
|
| Posted: 08/25/2004, 9:26 AM |
|
In the next issue of CCS Developer Magazine, we'll be providing the code and methods to implement a more dynamic approach to security at the page level.
You can go to http://www.dataobjx.net, register and download the first issue of CCS Developer Magazine and the source code for the articles FREE.
_________________
www.DataObjx.net
www.mydigitalapps.com |
 |
 |
|