mediamaisteri / moodle-block_mmquicklink

A block for administrators, managers and teachers to simplify navigation in Moodle. Contains easy access links to most used functions. Block's content is based on user's role & capabilities and page context.
GNU General Public License v3.0
0 stars 0 forks source link

Access control #1

Open mudrd8mz opened 3 years ago

mudrd8mz commented 3 years ago

There is currently a custom way of implementing access to the block based on roles. It is unexpected.

All the blocks should use the standard capabilities based mechanism to control access who can view the block so that it can be controlled via the common UI.

https://docs.moodle.org/dev/Access_API

mudrd8mz commented 3 years ago

image

haiksu commented 3 years ago

Thanks for your comment. You're right - I'll update the code as soon as possible. Cheers!

mudrd8mz commented 3 years ago

Thanks! To clarify I am referring to this setting:

image

Additional checks are still needed for each particular feature. Most of them actually work for site admins only.