limiting access based on variable |
9/3/2008 10:08:11 AM |
PHPRunner General questions | |
V
vytb author
Following the earlier topic at |
|
J
|
Jane 9/4/2008 |
Hi, |
V
|
vytb author 9/4/2008 |
Hi, I'm not sure that I understand you. You can't use static and dynamic permissions at the same time. Also the easiest way to restrict user access based on the field value is to use User can see and edit their own records only security method on the Advanced security settings dialog on the Security tab
|
J
|
Jane 9/4/2008 |
I have just asked if User can see and edit their own records only security method on the Advanced security settings dialog on the Security tab can be used together with dynamic permissions.
you can only enter one admin. Am I right?
|
V
|
vytb author 9/4/2008 |
I'm not sure what does " users have two or more values of this variable" mean. Where does user have these variables: in the users table, in the main table, in the event code? |
J
|
Jane 9/5/2008 |
Hi, global $conn; $str = "select Fieldname from UsersTable where Username='".$_SESSION["UserID"]."'"; $rs = db_query($str,$conn); $data = db_fetch_array($rs); $arr = explode(",",$data["Fieldname"]);//parse value $where = ""; for ($i=0; $i<count($arr); $i++) $where.= "city='".$arr[$i]."' or ";//form where clause $where = substr($where,0,-3); $strWhereClause = whereAdd($strWhereClause,"(".$where.")");//add where clause to the SQL query |
V
|
vytb author 9/22/2008 |
Yes. No. You can set up one group of users as admin group.
|
![]() |
Sergey Kornilov admin 9/22/2008 |
"User can see and edit their own records only" security method only supports one owner (one user). |