This topic is locked
[SOLVED]

 Hiding tabs not working in this project

2/10/2011 11:18:40 AM
PHPRunner General questions
V
Vienna author

In my previous PHPRunner 5.3 project where I had 5 users with their own logins each one would only see 2 links on log-in at their menu. In List view the top horizontal menu would show just two Tabs named for their master and details table. In that project each user had their own master table and their own details table. In admin view this makes at least 10 tabs alone for each user and their 2 tables.
In this current PHRunner project I have 7 users which also should only see 2 links on log-in and 2 tabs in the menu at the top. Unfortunately, now in this project each User currently sees all the links and all the tabs of other users. They see every tab an Admin sees. The only good thing is that when they click on any other User's tab they will not see those records. But I still want to eliminate them seeing all the extraneous tabs for other Users.
I am using, again as last project, dynamic permissions and set up individual groups and selected for each group with one member just the tables they are supposed to see.
I have looked at the 3 permissions tables in the database in phpmyadmin and don't see where I have gone astray.
Is there an extra javascript technique I need to use to hide the Menu tabs and Menu links from other User's views?
Thank you.
I have now tried setting up permissions using both the Static option and the Online Dynamic option. Every group has one user and the matching User group then is set to just show their own details table and the master record table. Logging in as any user gives me all the table links and all the table tabs of other users. The application knows that it is in a user restricted session because if I click another user's table tab it will not show the records. So why would the limitations I put into the Permissions keep failing? I even went back to look at the PHPRunner video tutorial on how to do this, in case I had missed something between this project and the last one where this works fine.
I thought about editing the Menu bar to remove unwanted Tabs in each users pages but I get the impression that the menu is a master file.

I have looked through the Forum and the Tips to see this topic come up, but I find no articles to explain what to do to solve this problem.

Sergey Kornilov admin 2/10/2011

Here is the article that explains how to hide certain menu items for certain users or groups of users:

http://xlinesoft.com/blog/2011/01/25/how-to-use-menu-builder-in-phprunnerasprunnerpro/

V
Vienna author 2/10/2011

I discovered something I had lost track of. The Tabs that would not disappear were Custom Menu items added to provide different views by clicking a tab. Because I had named them according to each user I went along thinking erroneously that they "belonged" to that User group when they were really just links added to the master menu.
Since I set up the Security and permissions to look for a User ID attached to the Master table records that matched the same user id in the user details tables the Master Table view was already sorted when that User logs in to look at the Master table.
My mistake in not looking at those tabs and remembering how and for what I had generated them.
But a useful lesson to me to reinforce how the log-in exceptions work!



In my previous PHPRunner 5.3 project where I had 5 users with their own logins each one would only see 2 links on log-in at their menu. In List view the top horizontal menu would show just two Tabs named for their master and details table. In that project each user had their own master table and their own details table. In admin view this makes at least 10 tabs alone for each user and their 2 tables.
In this current PHRunner project I have 7 users which also should only see 2 links on log-in and 2 tabs in the menu at the top. Unfortunately, now in this project each User currently sees all the links and all the tabs of other users. They see every tab an Admin sees. The only good thing is that when they click on any other User's tab they will not see those records. But I still want to eliminate them seeing all the extraneous tabs for other Users.
I am using, again as last project, dynamic permissions and set up individual groups and selected for each group with one member just the tables they are supposed to see.
I have looked at the 3 permissions tables in the database in phpmyadmin and don't see where I have gone astray.
Is there an extra javascript technique I need to use to hide the Menu tabs and Menu links from other User's views?
Thank you.
I have now tried setting up permissions using both the Static option and the Online Dynamic option. Every group has one user and the matching User group then is set to just show their own details table and the master record table. Logging in as any user gives me all the table links and all the table tabs of other users. The application knows that it is in a user restricted session because if I click another user's table tab it will not show the records. So why would the limitations I put into the Permissions keep failing? I even went back to look at the PHPRunner video tutorial on how to do this, in case I had missed something between this project and the last one where this works fine.
I thought about editing the Menu bar to remove unwanted Tabs in each users pages but I get the impression that the menu is a master file.

I have looked through the Forum and the Tips to see this topic come up, but I find no articles to explain what to do to solve this problem.