06-10-2011, 03:28 PM | #1 |
Junior Member
Join Date: Jun 2011
Posts: 6
Rep Power: 0 |
Permissions from sedondary vB group
Good day, Jeff!
Thanks for your bridge, I set up it successfully, but I can't understand mapping functionality: is it works for primary vb_group only, or roles maps for secondary groups too? My example: 1) I have two user groups on vBulletin: 'admin' and 'user'. And i have two users: A (groups - 'admin' is primary, 'user' is secondary) ; B (groups - 'user' is primary, 'admin' is secondary) 2) On the vbbridge I mapped 'admin' for an 'administrator' role and 'user' - for a 'subscriber' role 3) Next, I discommented the parameter define('USE_ADMINCP_BRIDGE', true); In the result, user A get all permissions by role 'administrator'. But user B has only permissons by role 'sudsriber'. Is it correct work of briedge? Is it possible to enable mapping roles for a secondary group too? Thank you. Sorry for my bad english |
Reply With Quote |
06-10-2011, 06:05 PM | #2 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
It only works for primary groups, it does not take secondary groups into account.
|
Reply With Quote |
06-12-2011, 03:27 PM | #3 |
Junior Member
Join Date: Jun 2011
Posts: 6
Rep Power: 0 |
So sad...
Can you help me - how to make it take the secondary group? While I had saw the source code, I found this mysql query: Code:
$us = $vb->db->query("SELECT userid, username FROM " . TABLE_PREFIX . "user where usergroupid = $group[usergroupid] or FIND_IN_SET($group[usergroupid], membergroupids)"); It will be fery useful, if the bridge will be able to take a secondary group in account Last edited by legal; 06-12-2011 at 03:28 PM. Reason: error |
Reply With Quote |
06-17-2011, 08:39 AM | #4 |
Junior Member
Join Date: Jun 2011
Posts: 6
Rep Power: 0 |
So, I want try to do it myself.
Tell me please - where does the bridge saves a mapping data? I set the mapping in Control Panel and it was saved somewhere. Now i try to get this schedule/massive into the PHP - haw can i do this? |
Reply With Quote |
06-17-2011, 08:42 AM | #5 |
Administrator
Join Date: Jul 2010
Posts: 402
Rep Power: 10 |
All of the data is saved to the options table in the wordpress database. Good luck!
|
Reply With Quote |
Reply |
Tags |
vbulletin wordpress bridge |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
You do not have sufficient permissions to access this page. | qwert789 | vBulletin Wordpress Bridge | 3 | 03-16-2011 09:24 PM |