Activity Feed
- Posted Re: Hiding Content from Certain Roles on Canvas Developers Group. 05-01-2021 07:17 AM
- Posted Re: Hiding Content from Certain Roles on Canvas Developers Group. 04-30-2021 04:37 PM
- Posted Re: Reconfigure Redirect Edu Apps LTI - Hide from students on Canvas Developers Group. 04-29-2021 03:17 PM
- Posted Re: How to Set Up Google Analytics for Canvas on Canvas Admin Blog. 03-09-2021 07:26 AM
My Posts
Post Details | Date Published | Views | Likes |
---|
05-01-2021
07:17 AM
@James thank you for your explanation
... View more
04-30-2021
04:37 PM
That's great sir BRAVO, but for example I add new role depend on "designer" or "TA" role called "Driver" for example, and I add an external tool to global navigator , this external tool it's visible just for admins not for teachers and students but I need to make it visible for this new role 'Driver' This is my code
(function() {
'use strict';
if (!(ENV.current_user_roles.indexOf('admin') > -1 || ENV.current_user_roles.indexOf('root_admin') > -1 || ENV.current_user_roles.indexOf('ta') > -1)) {
var el = document.querySelector('.globalNavExternalTool');
if (el) {
el.remove();
}
}
}
)();
I try with "ta" and "designer" roles but the external tools removed, I know because when I connect with this Driver and typed in console ENV he gives me :
current_user_roles: Array(2)
0: "user"
1: "teacher"
length: 2
but I'm not a teacher I'm Driver based of TA role or Designer role ! Can you help me with this please ? and thanks
... View more
04-29-2021
03:17 PM
Great Sir ! Thank you for the help
... View more
03-09-2021
07:26 AM
hi thank you for your post but this guide not working for me i think the script not supported for canvas lms can anyone still work with Google Analytics in canvas lms to give me the right javascript file Please or the correct guide thankyou
... View more