MDL-65093 core_message: dont show users with cap as blocked
authorMark Nelson <mdjnelson@gmail.com>
Thu, 11 Jul 2019 07:30:16 +0000 (15:30 +0800)
committerMark Nelson <mdjnelson@gmail.com>
Mon, 29 Jul 2019 02:39:57 +0000 (10:39 +0800)
commit66fffdbce5f85ced3f4e69f217f9ef212a8c8df1
tree493d36911caeac7c6fff66ffe94ba97d2831c593
parent90403c5d9decd165b88d5cfd1903849f9a60555e
MDL-65093 core_message: dont show users with cap as blocked

It is possible that before this patch the user blocked a
teacher from messaging them, even though this would have
no effect. It is also possible for a user to block a user,
then that user gets 'promoted' to a teacher role and the
block becoming ineffective. In these cases we dont show the
user's status as blocked.
message/classes/helper.php
message/tests/behat/block_user.feature