プロジェクト

全般

プロフィール

Vote #65563

完了

Login page should not show projects link and search box if authentication is required

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2009/08/06
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
27
issue_org_id:
3715
author_id:
7148
assigned_to_id:
0
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

If authentication is required then you can't reach any other page unless you have logged in. To avoid confusion for users and for a cleaner login page, the "Projects" link and "Search" box in the header menu should not appear. Any contribution to the header menu from plugins should also be suppressed.


journals

simple approach attached in diff
--------------------------------------------------------------------------------
Nice simple implementation. It would be good to add a short integration test for this to make sure they stay hidden in the future.
--------------------------------------------------------------------------------
Added a test. The menu_manager test suite seemed like a roughly appropriate spot for it.
Adjusted change to remove the entire #quick-search. I don't see any point in leaving the div with no form.

The other approach to this issue is to ask each plugin to respect the login_required setting and adjust Redmine in the menu manager somewhere. This approach would preserve the ability to show menu items to unauthenticated users when login is required, which the approach in this patch does not allow.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch committed in r5007. Test slightly edited and moved to @layout_test@.
--------------------------------------------------------------------------------
#2321 - this can be closed too
--------------------------------------------------------------------------------
Done, thanks.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,2321,Hide search textbox if authorization required

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン1.2.0_27 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0