Restricting visibility of Microsoft teams button in Atto editor to certain users

Restricting visibility of Microsoft teams button in Atto editor to certain users

by Fa Ahmed -
Number of replies: 6

Can we restrict visibility of ms teams button in atto editor? 

are there any useful plugins that help us restrict visibility of buttons in atto? 


Average of ratings: -
In reply to Fa Ahmed

Re: Restricting visibility of Microsoft teams button in Atto editor to certain users

by Eoin Campbell -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

You can't restrict by user without a lot of work, but you can simply remove the icon from the toolbar. Go to Site administration > Plugins > Text editors > Atto HTML editor > Atto toolbar settings (https://yourmoodle.org/admin/settings.php?section=editorsettingsatto) and edit the "Toolbar config" field to replace "links = link, teamsmeeting" with "links = link". See screenshot below.


Average of ratings: Useful (1)
In reply to Eoin Campbell

Re: Restricting visibility of Microsoft teams button in Atto editor to certain users

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Note that some Atto plugins implement a capability check, so that the button can only be shown to some users based on role.

For example see MDL-63772 / https://github.com/moodle/moodle/commit/f4ef234544d9e857ec717b2f066db764f675e5fe where this was done for one of the core atto plugins. This plugin could something similar if it wanted.
Average of ratings: Useful (1)
In reply to Eoin Campbell

Re: Restricting visibility of Microsoft teams button in Atto editor to certain users

by Fa Ahmed -
we want to keep this button in atto editor for teachers or instructors so they can create meetings.
In reply to Fa Ahmed

Re: Restricting visibility of Microsoft teams button in Atto editor to certain users

by Eoin Campbell -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
You could use the  MS Teams Meeting activity plugin instead of the Atto one. I think it does a better job anyway, because it creates a resource directly on the course page, rather than a link inside text. Lecturers can place anywhere, so students wouldn't have a standard way of referencing Teams meetings across a range of courses.
Average of ratings: Useful (1)
In reply to Eoin Campbell

Re: Restricting visibility of Microsoft teams button in Atto editor to certain users

by Fa Ahmed -
Thanks a ton Eoin. I installed both the plugins and delete 'teamsmeeting' from Toolbar config
editor_atto | toolbar. this resolve the problem. the teams button is hidden from atto editor and teacher can create meetings from activity plugin.
thanks a lot.