module access rights

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?
thx.

Al.

-----------------------------------

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.
i was thinking that a simple code like on linux could fit this need where i
could have execute/change/read access and this for each module.

for example, usr1 could have stored into DB the access rights 710 (knowing
that rights are based on mod3 | mod2 | mod1)
so usr1 :
- could execute some particular actions, change data and read data from
module 3
- could just read data for module 2
- does not have access to module 1

something similar for usr2 could be setup.

on each php pages/module, the user rights are checked and based on result,
the correct decision is taken by the web portal system.

i would like to know if such technique is a correct one, or if there is
something much more better ?

thanks a lot,

-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008



-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux