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

JavaScript not working in Moodle app #48

Open
parasteh opened this issue Feb 28, 2024 · 1 comment
Open

JavaScript not working in Moodle app #48

parasteh opened this issue Feb 28, 2024 · 1 comment

Comments

@parasteh
Copy link

Hi there,

I think this is more likely a moodle app security restriction, but I hope there is a way for it. What I am looking for is being able to run a simple conditional based on a value, for example if the person belongs to a team, "T1", I want to hide a link for them only. or some similar cases. This works in browser but Moodle App is not running. I tried conditional CSS even and the same thing.

Would you please advice a way or see if this can be added to the Generico somehow.
Thank you so much for your time developing this awesome plugin.

@justinhunt
Copy link
Owner

There is a viewcapability attribute and hidecapability attribute. Using this you can hide and show Generico content based on the users permissions. I don't know if this will work in the mobile app or not. But please let me know.

For more information look at the section "working with capabilities" on this page:
https://support.poodll.com/en/support/solutions/articles/19000083258-how-do-widgets-work-for-developers-

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

No branches or pull requests

2 participants