Development #41491
option pour limiter le nombre de documents par usager
Début:
08 avril 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Paramètre qui peut être élevé, juste pour éviter une saturation des inodes par quelqu'un qui uploaderait des millions de mini-fichiers (pas sûr que la limite puisse être atteinte avec la taille par défaut du porte-doc).
Fichiers
Révisions associées
views: block upload when MAX_DOCUMENTS_PER_USER limit is reached (#41491)
Historique
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Fichier 0002-views-block-upload-when-MAX_DOCUMENTS_PER_USER-limit.patch 0002-views-block-upload-when-MAX_DOCUMENTS_PER_USER-limit.patch ajouté
- Fichier 0001-settings-add-setting-FARGO_MAX_DOCUMENTS_PER_USER-41.patch 0001-settings-add-setting-FARGO_MAX_DOCUMENTS_PER_USER-41.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a environ 4 ans
ctx['count'] = self.count
→ Pas utilisé ensuite dans le gabarit.
- “You cannot add more documents anymore.” → “You cannot add any more document.”
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Fichier 0002-views-block-upload-when-MAX_DOCUMENTS_PER_USER-limit.patch 0002-views-block-upload-when-MAX_DOCUMENTS_PER_USER-limit.patch ajouté
- Fichier 0001-settings-add-setting-FARGO_MAX_DOCUMENTS_PER_USER-41.patch 0001-settings-add-setting-FARGO_MAX_DOCUMENTS_PER_USER-41.patch ajouté
Voili.
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
Mis à jour par Paul Marillonnet il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Je n'aurais pas pris la peine de couvrir le cas singulier pour la limite de document atteinte :)
Ack.
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit ac968163910569140d84def087a2c37adcca417d Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Wed Apr 8 23:36:56 2020 +0200 views: block upload when MAX_DOCUMENTS_PER_USER limit is reached (#41491) commit f243035c56cd0b9d56fa769b678aff83d8143c6c Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Wed Apr 8 23:13:16 2020 +0200 settings: add setting FARGO_MAX_DOCUMENTS_PER_USER (#41491) Limit on number of documents uploaded by an user and stored for him, it does not apply to documents with an origin (usually uploaded through the REST API).
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
settings: add setting FARGO_MAX_DOCUMENTS_PER_USER (#41491)
Limit on number of documents uploaded by an user and stored for him,
it does not apply to documents with an origin (usually uploaded through
the REST API).