blocks showing in my home space

blocks showing in my home space

by james mergenthaler -
Number of replies: 1

There is a block that is showing in the student my home space that should not be.  I have applied permissions to only allow a certain role to see it.  This works fine on the site home page, but the permission seems to be ignored when viewing in context of my home.  Any student role can see the block.

Help and thank you.

Using moodle 2.0

Average of ratings: -
In reply to james mergenthaler

Re: blocks showing in my home space

by T N -

You can prohibit the students from managing the blocks by changing the source code of “index.php” in the “my” folder as following way.

 Around line 60: $PAGE->set_blocks_editing_capability('moodle/my:manageblocks');

You should change manageblocks to manageownblocks or configsyspages.

 The students will be unable to manage the blocks. Thus, you should care about the existing blocks in the students’ “my homes”. The blocks will be unable to be removed by themselves.