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

Level should not show navbar when XP is not used in course #166

Open
jrm-unamur opened this issue May 30, 2024 · 3 comments
Open

Level should not show navbar when XP is not used in course #166

jrm-unamur opened this issue May 30, 2024 · 3 comments
Labels

Comments

@jrm-unamur
Copy link

Hi there,

When admin setting block_xp/navbardisplay is activated, the level is displayed in all courses even if the block is not present in course.
IMHO the level should be dipsplayed ONLY in courses where block_xp is activated

Kind regards

@FMCorz FMCorz added the bug label May 30, 2024
@FMCorz FMCorz changed the title Admin setting "navbardisplay" Level should not show navbar when XP is not used in course May 30, 2024
@FMCorz
Copy link
Owner

FMCorz commented May 30, 2024

Hi @jrm-unamur,

Thanks for reporting this. You are right, the level is displayed in the navbar even for courses where the block was not added. This is indeed a bug. In the meantime, to mitigate this, you could use roles to remove/add the permission block/xp:view from the student role in the courses where XP should be hidden/shown.

@jrm-unamur
Copy link
Author

Thanks for prompt answer Frédéric.
Do you plan to fix this in a next release? The permission trick is ok, but with many courses and few advanced teachers, it's not really easy to get them do this manipulation ;-)

Kind regards

Jean-Roch

@FMCorz
Copy link
Owner

FMCorz commented May 30, 2024

Yes, we will fix it in the next release. I understand the workaround does not scale, I shared it just in case it could be applied. Thanks again!

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

No branches or pull requests

2 participants