|
|
Sergey Kornilov admin 11/24/2014 |
|
You can use Advanced Security option 'Users can see all data, can edit their own data only' for this purpose. |
|
|
|
romaldus 11/25/2014 |
|
other scenario to achieve this :
$strWhereClause = whereAdd($strWhereClause, "branch_code ='" .$_SESSION["CUSTOM_BRANCH"] ."'"); |
|
|
G
|
Getinet author 11/27/2014 |
|
Thank you very much [b]Rthis solution is more like it. |
|
|
|
romaldus 11/27/2014 |
|
Thank you very much [b]Rthis solution is more like it. [color="#008000"]One more question if i am not rude please. [color="#008000"]But i have also got admin/manager users who can VIEW/ADD/EDIT/DELETE all/any branch data, how to set up [size="2"]such security levels? [/size] [size="2"]" for privileged users only.[/size]
|
|
|
|
romaldus 11/27/2014 |
|
to make sure admin can see all records, use the following code in Table_Name > List Page > List Page : Before SQL Query if ($_SESSION["CUSTOM_BRANCH"] != "admin")
|
|
|
G
|
Getinet author 11/28/2014 |
|
Thanks Brother you are charming.I will use your advice. |
|