What is the efficient way to make a permission system?
Posted
by WEBProject
on Stack Overflow
See other posts from Stack Overflow
or by WEBProject
Published on 2010-06-12T07:53:31Z
Indexed on
2010/06/12
8:02 UTC
Read the original article
Hit count: 144
Currently im just using something like:
in the DB Table:
access: home,register,login
and then in each page:
if(!Functions::has_rights('content'))
{
Functions::noAccess();
}
is there more efficient way to do it, php & MySQL? i may want to gain access even to several parts a page, for example: user can read a page, but doesnt comment to it, and I dont want to build a separate system to each module.
Thanks in advanced, Tal.
© Stack Overflow or respective owner