public function giveOwnRights($user) {
        $aclProvider = $this->container->get('security.acl.provider');
        $maskBuilder = new MaskBuilder();

        $usid = UserSecurityIdentity::fromAccount($user);
        $uoid = ObjectIdentity::fromDomainObject($user);
        foreach($this->container->getParameter("fom_user.user_own_permissions") as $permission) {
            $maskBuilder->add($permission);
        }
        $umask = $maskBuilder->get();

        try {
            $acl = $aclProvider->findAcl($uoid);
        } catch(\Exception $e) {
            $acl = $aclProvider->createAcl($uoid);
        }
        $acl->insertObjectAce($usid, $umask);
        $aclProvider->updateAcl($acl);
    }