[Gruppo-doc] Problema con le ACL nel wiki

Mattia Rizzolo mapreri a ubuntu.com
Lun 30 Maggio 2016 07:21:27 BST


On Mon, May 30, 2016 at 03:12:54AM +0200, Jeremie Tamburini wrote:
> In pratica spostando u"GruppoUtenti:read,write,revert " in
> acl_rights_default il GruppoUtenti non riesce più a modificare qualsiasi
> pagine. Per il momento ho quindi riportato il gruppo in acl_rights_before.

-    acl_rights_default = (u"Known:read " u"All:read ")
+    acl_rights_default = (u"Known:read " u"All:read " u"GruppoUtenti:read,write,revert ")

*Penso* che la ragione sia semplicemente che hai messo il GruppoUtenti
come ultima cosa.  Dovrebbe essere subito prima di Known (voglio
ricordare che il gruppo speciale Known è "tutti gli utenti loggati").

MoinMoin applica la prima regola buona che trova valida per l'utente:


When a user is trying to access an ACL-protected resource, the ACL
entries will be processed in the order they are found. The first ACL
entry matching the user will determine whether the user has access to
that resource or not and processing will stop. Due to this first match
algorithm, you should arrange your ACL entries in the following order:
1) single usernames, 2) special groups, 3) more general groups, 4) Known
and finally 5) All.


Quindi con la modifica che hai fattodi mettere GruppoUtenti alla fine
viene semplicemente ignorata perchè Known è un gruppo valido per
qualsiasi utente (come lo sarebbe anche All, in ogni caso).

> Se ti andasse di fare delle prove in locale, questa è la guida che seguo:
> http://wiki.ubuntu-it.org/Ufficio/MoinMoinDesktopEdqition
> (Per i test sulla grafica utilizzo questo paragrafo [2]).

Se fosse per questo io avrei pure un'instanza completa di moimoin (che
non gira in modalità standalone come descritta da quella pagina), ma non
ho davvero tempo/voglia di testare, sorry.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome:        non disponibile
Tipo:        application/pgp-signature
Dimensione:  819 bytes
Descrizione: non disponibile
URL:         <http://liste.ubuntu-it.org/pipermail/gruppo-doc/attachments/20160530/df4ba2ad/attachment.pgp>


Maggiori informazioni sulla lista Gruppo-doc