![]() |
Sergey Kornilov admin 2/16/2016 |
Sure, this is possible. We call this functionality record-level security. You will need to add a new cross-reference table that would hold the relationship between users and vendors and for each user you can define which vendor products will be available. |
![]() |
greggk author 2/17/2016 |
Sure, this is possible. We call this functionality record-level security. You will need to add a new cross-reference table that would hold the relationship between users and vendors and for each user you can define which vendor products will be available. See tutorial at http://www.asprunner.com/forums/topic/23195-how-to-implement-record-level-security/
|
![]() |
greggk author 2/17/2016 |
Ok, I figured it out. I just had the wrong ID in the statement. |
![]() |
Sergey Kornilov admin 2/17/2016 |
In AfterTableInit check user id or user group and only apply this filter if current user is not an admin. See examples at http://xlinesoft.com/phprunner/docs/modify_sql_query_on_the_fly.htm |