- Timestamp:
- Apr 15, 2010, 4:32:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/user_sync_xoops.php
r534 r578 47 47 } 48 48 49 $is_multiblog = xpress_is_multiblog(); 50 if (defined('BLOG_ID_CURRENT_SITE')){ 51 $root_blog_id = BLOG_ID_CURRENT_SITE; 52 } else { 53 $root_blog_id = 1; 54 } 55 49 56 $ans_array = array(); 50 57 foreach($blog_id_list as $blog_id){ … … 64 71 //get maximum role 65 72 foreach($user_groups as $user_group){ 66 if ($user_group->group_type == 'Admin'){ 73 $is_blog_root = (!$is_multiblog || ($user_group->blog_id == $root_blog_id)); 74 if ($user_group->group_type == 'Admin' && $is_blog_root){ 67 75 $ans['capabillities'] = 'administrator'; 68 76 if ($user_group->groupid =1){
Note: See TracChangeset
for help on using the changeset viewer.