[SOLVED] Â Restrict views to different users |
8/17/2019 1:18:01 AM |
PHPRunner General questions | |
A
AndrewMark author
In Designer , if I add additional view pages eg View1 and View2 or list1 and list 2 for the same table, is it possible to restrict different user groups to be able to only see this restricted list or view when they login. eg Admin can only see View1, Customer can only see View2 etc.. If so, is there some instruction on the code required to implement this? |
|
J
|
jacques 8/17/2019 |
In Designer , if I add additional view pages eg View1 and View2 or list1 and list 2 for the same table, is it possible to restrict different user groups to be able to only see this restricted list or view when they login. eg Admin can only see View1, Customer can only see View2 etc.. If so, is there some instruction on the code required to implement this? I found the following article https://xlinesoft.co...tions-answered/ but it did not completely explain this.
|
A
|
AndrewMark author 8/17/2019 |
Look at the blog https://xlinesoft.com/blog/2015/12/04/storing-field-labels-and-visibility-rules-in-the-database/ add a field for wich usergroup you want to hide the field/column. combine this with usergroups then the possibilities are limitless
|
D
|
david22585 8/17/2019 |
I would just add a new custom view with only the page that you need and restrict the access on that page. |
A
|
AndrewMark author 8/17/2019 |
I would just add a new custom view with only the page that you need and restrict the access on that page.
|
A
|
acpan 8/17/2019 |
I don't think there is option to assign additional views to different groups at the moment in phprunner. |
A
|
AndrewMark author 8/17/2019 |
I don't think there is option to assign additional views to different groups at the moment in phprunner. "additional view pages in Designer superseded custom views" => Actually you can just create unlimited number of views and name them differntly and assign to different groups. In general, these are the 3 methods i can think of: Method 1: Try checking group permission and redirect to the additional views as per user group. https://phprunner.com/phprunner/docs/secapi_get_user_group.htm Method 2 (same as what mentioned above): Create another seperate veiw with a seperate view name and assign the view permission to the user groups. https://phprunner.com/phprunner/docs/user_group_permissions.htm Method 3: Create seperate app (with different views) for different user groups. ACP
|
A
|
acpan 8/18/2019 |
Create unlimited views: |
J
|
jacques 8/18/2019 |
Create unlimited views: "After creating multiple views in Designer" => You don't do it Desginer. Open Phprunner Project, go to Table => right click a table you want, select Add custom view. (this is also same as what david22585 suggested). ACP P.S. Try breaking your sentences, so that people who help you have a better times reading what you mean.
|
A
|
AndrewMark author 8/18/2019 |
Create unlimited views: "After creating multiple views in Designer" => You don't do it Desginer. Open Phprunner Project, go to Table => right click a table you want, select Add custom view. (this is also same as what david22585 suggested). ACP P.S. Try breaking your sentences, so that people who help you have a better times reading what you mean.
|
A
|
AndrewMark author 8/18/2019 |
I my case I added a column hide_group to the query to the example in the blog thanks
|