![]() |
Sergey Kornilov admin 1/14/2014 |
I'm not really sure how row level security and the issue you having are related. Row level security doesn't require any custom code. It's not related to many-to-many relationships either. This is a simple association between one of fields in the data table and in the login table. If field values match current user can see and edit record. Again, no coding is required. |
S
|
SkyForum author 1/15/2014 |
I'm not really sure how row level security and the issue you having are related. Row level security doesn't require any custom code. It's not related to many-to-many relationships either. This is a simple association between one of fields in the data table and in the login table. If field values match current user can see and edit record. Again, no coding is required. Here are links that you can check: http://xlinesoft.com...ty_settings.htm http://xlinesoft.com...cles/alumni.htm http://www.xlinesoft...ls/security.htm
|
S
|
SkyForum author 1/15/2014 |
I have setup dynamic permissions. I can see where I can restrict users to what they can do in a specific table (add, edti, delete, etc) but your program does not allow me to restrict users to specific rows within that table and I don't understand why. If it did, I could then just create a group for each property in the property table as I added them and assign the user to that group, problem solved. Instead, I have to create a many to many relationship outside of the security part of your application to perform this task. This is where I am getting lost. I can get it to work but I keep getting the error above. How come you did not add this functionality right into the security section? Seems like a logical course of action to me. What is the sql error and how do I fix that? Might be a clue.... |
![]() |
Sergey Kornilov admin 1/15/2014 |
According to the error message it breaks executing the following SQL query: select * from propertyrole where UserID= and PropertyID=1
|
S
|
SkyForum author 1/15/2014 |
According to the error message it breaks executing the following SQL query: select * from propertyrole where UserID= and PropertyID=1
|
![]() |
Sergey Kornilov admin 1/15/2014 |
If you need to implement something that PHPRunner doesn't support out of the box you do need to write the code. |
S
|
SkyForum author 1/15/2014 |
If you need to implement something that PHPRunner doesn't support out of the box you do need to write the code. However, as I mentioned as few posts ago, for such a simple task as row level security you do not need to write any code. That being said I'm completely lost trying to understand what you trying to achieve.
|
![]() |
Sergey Kornilov admin 1/16/2014 |
There is something wrong here. Why do you think many-to-many relationships can help you here? I never said you need that. |
S
|
SkyForum author 1/16/2014 |
There is something wrong here. Why do you think many-to-many relationships can help you here? I never said you need that.
|
![]() |
Sergey Kornilov admin 1/16/2014 |
It's very, very simple. I have explained it many times but you won't listen. |
S
|
SkyForum author 1/16/2014 |
It's very, very simple. I have explained it many times but you won't listen. You need to have CompanyID field in Properties table. It will be populated with ID of the company that owns/manages those properties. It's logical for this CompanyID to be a primary key value from Companies table. Users/Login table should also have CompanyID field populated with ID of the company they belong to. When you setup advanced security choose CompanyID in both tables. What can be easier?
|