Effectivement, ça ne marche pas pour les groupes, car précisément, les groupes sont définis par section : *group*
Mais tu peux facilement patcher : Par exmple dans le fichier C:<WAPT>\waptservice\templates\list.html ligne Remplace {%if package_section != 'restricted' %} par {%if package_section != 'restricted' *and package_section != 'group'* %}
et rebuilde un waptagent.
Le 21/09/2018 à 17:08, MORILLO Jordi a écrit :
Merci Hubert ! Vous avez vraiment pensé à tout !
Je viens de voir en + que l’attribut « restricted » existe depuis wapt 1.3.8.2 J
Simon avait indiqué sur la mailing-list fin d’année 2017 que cet attribut ne fonctionne pas pour un groupe de paquets.
Est-ce toujours d’actualité ?
Bon week-end à tous !
*De :*WAPT wapt-bounces@lists.tranquil.it *De la part de* Hubert TOUVET *Envoyé :* vendredi 21 septembre 2018 16:46 *À :* wapt@lists.tranquil.it *Objet :* Re: [Wapt] Self Service + restriction de package
Bonjour, L'idée générale est très bonne. Il y a déjà une possibilité de masquer certains paquets pour le self service.
Les paquets qui ont l'attribut "*section*" (dans le fichier control) égal à "*restricted*" n'apparaissent pas dans le self service (groupe waptselfservice et non waptselfdeploy.. ;) )
package : tis-msoffice version : 2016-15 architecture : all section : *restricted* priority : optional maintainer : description : MS Office ...
Mais cela ne fait que "masquer". On peut toujours lancer l'installation si on passe l'URL directement dans un navigateur... Dans la "future" version du self service, il y aura quelque chose de plus évolué avec une interface utilisateur proche d'un "app store".
Hubert
Le 21/09/2018 à 16:34, MORILLO Jordi a écrit :
Bien le bonjour à tous, Je suis en train de jeter un œil à la fonctionnalité Self Service de Wapt (via la rattachement à un groupe de sécurité « waptselfdeploy ») et je trouve le concept génial ! Je pense déployer cette feature à une bonne partie de mes utilisateurs MAIS : Nous souhaiterions « masquer » certains packages à nos utilisateurs, comme le choix de la version d’office, ou bien encore certains packages qui sont du cas par cas. Est-ce que cette fonctionnalité existe déjà ? J Si non, je pensais, pour une roadmap ultérieure, à une bidouille du truc du genre : -Rajouter un champ « selfservice = True or False » dans la table wapt_package de la waptdb.sqlite du client + dans le fichier « control » des packages -Modifier la requête SQL présente dans la fonction « def all_packages » du fichier waptservice\waptservice.py Que pensez-vous de cette idée ? Bon week-end à tous ! _______________________________________________ WAPT mailing list WAPT@lists.tranquil.it <mailto:WAPT@lists.tranquil.it> http://lists.tranquil.it/listinfo/wapt
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt