function __construct()
 {
     gateKeeper();
     $guid = pageArray(2);
     BlockUserPlugin::block($guid);
     new SystemMessage("User has been blocked.");
     forward();
 }
 function validate($entity)
 {
     if ($entity->access_id == "system") {
         return true;
     }
     switch (true) {
         case is_a($entity, "SocialApparatus\\User"):
             var_dump($entity);
             die;
             break;
         case is_a($entity, "SocialApparatus\\Photoalbum"):
             if (BlockUserPlugin::blocked($entity->owner_guid)) {
                 return false;
             } else {
                 return true;
             }
             break;
         default:
             return true;
             break;
     }
 }