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

Aalborg theme shows "Dashboard" site menu entry when logged out. #6049

Closed
iionly opened this issue Sep 10, 2013 · 4 comments
Closed

Aalborg theme shows "Dashboard" site menu entry when logged out. #6049

iionly opened this issue Sep 10, 2013 · 4 comments

Comments

@iionly
Copy link
Contributor

iionly commented Sep 10, 2013

Of course the link fails to open the dashboard when you are not logged in. :-)

@juho-jaakkola
Copy link
Member

I closed the PR for Aalborg theme. Let's fix this in the dashboard plugin instead.

@iionly
Copy link
Contributor Author

iionly commented Jun 3, 2014

@juho-jaakkola Would the dashboard plugin really be the right place to "fix" this? It's ONLY the Aalborg theme that changes the behaviour compared to the Elgg default theme (Dashboard link not in Topbar but in site menu instead). If the modification would be made in the code of the dashboard theme the change would be quite the same (checking if a user is logged in and register the menu item only when logged in PLUS a check if the Aalborg theme is used).

Additionally, if someone wants to create a custom theme based on the Aalbord theme (other plugin id), the modification made in the dashboard plugin would be for nothing. So, it seems to me the right place to change the code would be within the Aalborg theme.

@beck24
Copy link
Member

beck24 commented Jun 3, 2014

Yes this is an aalborg issue, I reopened the PR

@juho-jaakkola
Copy link
Member

Sorry, my bad! I was assuming that the issue is caused by the fact that Dashboard plugin doesn't check whether user is logged in before registering the menu item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants