#space-admin-tabs.page-tabs.page-tabs-full
  .btn-group{ :"data-toggle" => "buttons-radio" }
    = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small")

    - if can?(:manage_news, @space)
      = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small")

    - if can?(:manage_join_requests, @space)
      = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small")
      = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small")

    - if can?(:user_permissions, @space)
      = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small")

    - if can?(:webconference_options, @space.bigbluebutton_room)
      = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")

#space-admin-tabs.page-tabs.page-tabs-full
  .btn-group{ :"data-toggle" => "buttons-radio" }
    = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small")

    - if can?(:manage_news, @space)
      = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small")

    - if can?(:manage_join_requests, @space)
      = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small")
      = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small")

    - if can?(:user_permissions, @space)
      = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small")

    - if can?(:webconference_options, @space)
      = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")

Fix permission check on space admin tabs after 38bccab
Fix permission check on space admin tabs after 38bccab

refs #1771
