/**
  * Initialise l'autorisation.
  * @param Webos Le webos.
  * @param User $user L'utilisateur sous lequel on executera l'action.
  * @param string $file Le fichier qui demande l'action.
  */
 public function __construct(Webos $webos, models\User $user)
 {
     parent::__construct($webos);
     if ($user->getId() !== null) {
         $this->authorizations = $this->webos->managers()->get('User')->getAuthorisations($user->getId());
     }
 }