Topic awaiting preservation: Uber permissions module - need to restrict usage on EVERYTHING on my webforms how do I do it? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: you tell me |
posted 01-17-2009 09:54
Hi guys, new situation. Well the system we're working on has a simple module based permissions system in place. Basically all modules ids are stored in a db as are sub module details. Now when a user is granted access to modules a module access field for the use rin teh user table is populated with acolon delimmiter string of ids of the module and submodule ids the user can access. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-17-2009 10:13
Well, the short answer is 'give every link and button a unique name, and only if the field for that name is set, show it (and don't forgot to actually restrict the functionality again'. |
Bipolar (III) Inmate From: you tell me |
posted 01-17-2009 10:18
Well thats pretty much teh idea we do hope to include roles as well kinda like how facebook have set in their privacy settings - you can assign access rights to friend lists and along that you can add exceptions for certain individuals like you could grant access to photos for all friends in a list except one of them within that list... |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-17-2009 13:45
basically, I'd have a central object that handled checking a permission and displaying the content, |
Bipolar (III) Inmate From: you tell me |
posted 01-17-2009 14:07
I'm beginning to understand the hard way that whatever I've studied at college with respect to the SDLC and design process has yet to be put into implementation. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-17-2009 14:42
well, you coworker is right. |