Skip to:
Content
Pages
Categories
Search
Top
Bottom

Main site in list of “my sites” for new users even though they are not users on that site

  • I just set up a new install of Buddypress, default theme, no activated plugins. When I register a new user and create a site for them (sub-domain if it matters) everything works great except that my main site (and the sub-menus for dashboard, new post, etc) shows up in their list of sites in the buddypress admin bar.

    The new user has no access to the site and isn’t on the list of users. When I attempt to go to the dashboard with that account I get an error message saying I have no access of course.

    Anyone have any idea how to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alright here is a fix but it requires editing a core file.

    in bp-blogs-classes.php on line 43 in the save() function add a check for blog id 1 and if it is exit out …
    if ( !$this->user_id || !$this->blog_id || $this->blog_id == ‘1’ ) return false;

    I guess my question now is whether the main blog is being added intentionally or if I can make this change without causing any unforeseen issues down the line. Anyone more familiar with Buddypress have any insight into this.

    This can be closed, it’s a known issue with a better fix already submitted. https://buddypress.trac.wordpress.org/ticket/3696


    @mercime
    Keymaster

    @mercime

    Closing as requested

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Main site in list of “my sites” for new users even though they are not users on that site’ is closed to new replies.
Skip to toolbar