Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP#59817 Remove activity menu for anonymous users with login required #17314

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

top4ek
Copy link
Contributor

@top4ek top4ek commented Nov 29, 2024

OP#59817

What are you trying to accomplish?

Remove top menu Activity item for anonymous users when login is required as it's leads to nowhere(same login page).

What approach did you choose and why?

Fresh installation shows only Activity item in top menu and leads to the same login page when login is required., so I removed that item when user is anonymous and login is required.
As we don't have any items in top menu in this case and menu is not rendered, I've removed spec for that.
Returning empty array when there's no items thus we don't need to group them(otherwise we have 500 with heading? access to nil)

@top4ek top4ek changed the title Remove activity menu for anonymous users with login required OP#59817 Remove activity menu for anonymous users with login required Nov 29, 2024
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @top4ek

thanks a lot for your contribution! Functionality looks good, I just have a minor remark with regards to the test.

@top4ek top4ek marked this pull request as draft December 3, 2024 15:53
@top4ek top4ek requested a review from HDinger December 4, 2024 07:19
Copy link
Contributor

@apfohl apfohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a suggestion to the code in module_top_menu_items.

@top4ek top4ek marked this pull request as ready for review December 10, 2024 15:40
@top4ek top4ek force-pushed the remove_anonymous_menu branch from 40c943f to 561a4eb Compare January 14, 2025 17:06
@top4ek top4ek closed this Mar 12, 2025
@top4ek top4ek deleted the remove_anonymous_menu branch March 12, 2025 18:43
@top4ek top4ek restored the remove_anonymous_menu branch March 18, 2025 10:20
@top4ek top4ek reopened this Mar 18, 2025
@top4ek top4ek force-pushed the remove_anonymous_menu branch from e5a55e0 to b7902e7 Compare March 18, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants