/**
  * getUserPermissionsErrors -  control access to articles in the namespace NS_USER_WALL_MESSAGE_GREETING
  *
  * @param $title
  * @param $user
  * @param $action
  * @param $result
  * @return bool
  *
  * @author Tomek Odrobny
  *
  * @access public
  */
 public static function onGetUserPermissionsErrors(&$title, &$user, $action, &$result)
 {
     if ($title->getNamespace() == NS_USER_WALL_MESSAGE_GREETING) {
         $result = array();
         $wm = new WallMessage($title);
         if ($user->isAllowed('walledit') || $wm->isWallOwner($user) || $action === 'read' || $action === 'history') {
             $result = null;
             return true;
         } else {
             $result = array('badaccess-group0');
             return false;
         }
     }
     $result = null;
     return true;
 }