What does getPermissions() return?

OK, I'm in over my head...
I'm trying to implement a permissions scheme that differs slightly from the standard one - I want my permissions to be defined by a DB table, rather than the .ini-file approach normally used.
I've got my table set up, and it's being used to check username/password as expected. So far so good.
I've implemented getPermissions() in conf/ApplicaitionDelegate.php to grab the data from my table. Here's where it all goes horribly wrong...
I'm setting up $results[$permission] = true or false according to my table, then returning $results. This doesn't work - everyting seems to be permitted, even if the permission (list, edit, whatever) is fales or even missing.
What is my function supposed to be returning?
Thanks!
Vic,
I'm trying to implement a permissions scheme that differs slightly from the standard one - I want my permissions to be defined by a DB table, rather than the .ini-file approach normally used.
I've got my table set up, and it's being used to check username/password as expected. So far so good.
I've implemented getPermissions() in conf/ApplicaitionDelegate.php to grab the data from my table. Here's where it all goes horribly wrong...
I'm setting up $results[$permission] = true or false according to my table, then returning $results. This doesn't work - everyting seems to be permitted, even if the permission (list, edit, whatever) is fales or even missing.
What is my function supposed to be returning?
Thanks!
Vic,