Problem with the name of moodle/block:edit capability?

Re: Problem with the name of moodle/block:edit capability?

by David Mudrák -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

this permission is used in blocks/moodleblock.class.php to define the function user_can_addto($page)

Yes, but not only there. Please also refer to other places where the capability is checked such as the user_can_edit() method there. Also https://docs.moodle.org/en/Capabilities/moodle/block:edit

There are block type level block/xyz:addinstance and block/xyz:myaddinstance capabilities that control adding new block instances.