BBPress Patryk Wezowski : Replies Created

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Allowing users to edit their imported profile #365905
    Patryk Wezowski
    Participant

    We’re using s2member and memberium plugins and have Link extension installed.

    in reply to: Users can add new Entries without capability #364951
    Patryk Wezowski
    Participant

    Actually there is a bug in connections_link.php around line 509. Link “Add My Directory Entry” will be displayed to everyone no matter what cause there is missing:
    if (current_user_can( ‘connections_add_entry_moderated’ ) || current_user_can( ‘connections_add_entry’ ))
    Here is a code with added missing piece:

              if (current_user_can( 'connections_add_entry_moderated' ) || current_user_can( 'connections_add_entry' ))
              {
                if ( class_exists( 'Connections_Form' ) ) {
    
                    cnURL::permalink( array( 'type' => 'submit', 'text' => __( 'Add My Directory Entry', 'connections_link' ), 'return' => FALSE ) );
    
                } else {
    
                    printf( '%2$s',
                        admin_url( 'users.php?page=connections_link' ),
                        __( 'Add My Directory Entry', 'connections_link' )
                        );
    
                }
              }
    

    For me thats what fixed link showing to people with roles that had no capability.

Viewing 2 posts - 1 through 2 (of 2 total)