Re: module access rights
| From: | Ken Kixmoeller.com | Date: | Sat, 19 Apr 2008 13:32:47 +0000 |
| Subject: | Re: module access rights | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273300@lists.php.net to get a copy of this message | ||
On Apr 19, 2008, at 2:37 AM, Alain Roger wrote:
Hi, i'm very surprised... i did not get any answer to my previous post. is it because it is good way to do it or because nobody knows ? ----------------------------------- Hi, i face now a little issue regarding how end user can access to some modules of my web portal. Let imagine we have several modules (let say: mod1, mod 2, mod3) and 2 users (usr1, usr2). i would like to use a simple way how to established access rights for each user to grant/forbidden access to modules...Or maybe the answer is as complicated as the question seems simple. I have my master application object. On __construct, it checks the current user's rights from somewhere (a config file or a database, for example), and instantiates the application based on the rights profile. Simple answer, but a lot of front-end work to implement. Ken