8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-06 02:52:10 +00:00
Commit graph

1009 commits

Author SHA1 Message Date
Gabriel Detraz
18530d1a71 Doc des can_xxx, et simplification à 4 fonctions d'acl communes 2018-01-06 17:56:02 +01:00
Gabriel Detraz
6903c0dfde Can_delete_set sur preferences et cotisations 2018-01-06 17:56:02 +01:00
Gabriel Detraz
026cea29a5 Renomme la fonction can_delete_set 2018-01-06 17:56:02 +01:00
Gabriel Detraz
2936252a32 Can_delete_set sur machines 2018-01-06 17:56:02 +01:00
Gabriel Detraz
09f8db7e6e Fix erreur dict 2018-01-06 17:56:02 +01:00
Gabriel Detraz
83bf0c71f7 Proof of concept can_delete_all 2018-01-06 17:56:02 +01:00
Maël Kervella
ea292827f0 Add templatetags for all can_xxx 2018-01-06 17:56:02 +01:00
Maël Kervella
9f18d44bdd can_view for topo + can_xxx_all everywhere 2018-01-06 17:56:02 +01:00
Hugo LEVY-FALK
3ddbe41be8 Dispatch des modèles dans le tag de gestion des acl plus simple. 2018-01-06 17:56:02 +01:00
Gabriel Detraz
91b3dded4d Fix les erreurs d'indentation de certains... 2018-01-06 17:56:02 +01:00
Gabriel Detraz
3a0d402de5 Refactor des acl sur le views de topologie 2018-01-06 17:56:02 +01:00
Gabriel Detraz
db6470dda4 Methodes delete, create et edit pour topologie 2018-01-06 17:56:02 +01:00
Maël Kervella
aaab8db7f8 Create can_delete and can_view decorators and use them where it's possible 2018-01-06 17:56:02 +01:00
Maël Kervella
c74370086e Define can_create, can_edit, can_delete and can_view and use can_create and can_edit decorators for preferences.models 2018-01-06 17:56:02 +01:00
Maël Kervella
7b3ece0d29 Define can_create, can_edit, can_delete and can_view and use can_create and can_edit decorators for cotisations.models 2018-01-06 17:56:02 +01:00
Maël Kervella
2c9ee954c1 Define can_create, can_edit, can_delete and can_view and use can_create and can_edit decorator for users.models 2018-01-06 17:56:02 +01:00
Maël Kervella
8e6d19151b Can_view for machines.models 2018-01-06 17:56:02 +01:00
Maël Kervella
0f7b481633 Can_delete for machines.models 2018-01-06 17:56:02 +01:00
Maël Kervella
d0e7a9ea4c Fix : rename templatetags 2018-01-06 17:56:01 +01:00
Maël Kervella
25bbb24b91 Add support for acl based on instances 2018-01-06 17:56:01 +01:00
Maël Kervella
0f8df0988d Pylint & Pep8 compliance 2018-01-06 17:56:01 +01:00
Maël Kervella
24a4069aab Add support for args passed through the templatetag to the acl function 2018-01-06 17:56:01 +01:00
Maël Kervella
c5bd76aad5 templatetags for acl that use models not instances 2018-01-06 17:56:01 +01:00
Gabriel Detraz
10c1c4d0c6 Error synthaxe 2018-01-06 17:56:01 +01:00
Maël Kervella
4865486e06 Ajoute des args et kwargs partout pour éviter les mauvaises surprises 2018-01-06 17:56:01 +01:00
Maël Kervella
7cbd4298db Use @can_create and @can_edit on machines.models 2018-01-06 17:56:01 +01:00
Maël Kervella
efa34c7f58 Récupère l'instance dans une fonction à part pour chaque modèle de machines.models 2018-01-06 17:56:01 +01:00
Maël Kervella
edfe06791c Ajoute un message d'erreur si can_xxx renvoie False 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
db9de53a8c @can_create et @can_edit sur l'ajout de ban, l'ajout de droit, l'édition/création de service, l'édition de password, les états et l'édition d'utilisateurs. 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
74d93c5219 Redirection constante vers la page utilisateur en cas d'erreur et nommage consistant des paramètres 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
db6c11075f Pas de requête directement dans @can_edit. On récupère l'instance dans model.get_instance et on la transmet à model.can_edit et à la vue. 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
d9c172ea13 fix de @can_edit 2018-01-06 17:56:01 +01:00
Maël Kervella
67b519d2fb can_edit pour machines.models 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
3ef9035712 Premier jet de décorateur can_edit 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
541f630369 Déplacement du décorateur can_create dans re2o/utils.py 2018-01-06 17:56:01 +01:00
Maël Kervella
005497c662 Add can_create to machines.models 2018-01-06 17:56:01 +01:00
Maël Kervella
3f4838436c can_create for Machine 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
39ef420c4b Documentation. 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
843d78521f can_create avec choix du model 2018-01-06 17:56:01 +01:00
Hugo LEVY-FALK
e8db0f8cf2 décorateur can_create 2018-01-06 17:56:01 +01:00
Maël Kervella
9a9d6041c1 Merge branch 'open_graph' into 'master'
Open graph

See merge request federez/re2o!54
2017-12-23 17:30:04 +01:00
Matthieu Michelet
723e3295e9 Changement de la description dans les données open_graph 2017-12-23 17:20:21 +01:00
Matthieu Michelet
be3f508a00 Utilisation d'un logo Re2o et d'Url local issue #53 2017-12-23 17:20:21 +01:00
Matthieu Michelet
50663784bd NVérification du caractère sécurisé de la requete http/https issue #53 2017-12-23 17:12:13 +01:00
Matthieu Michelet
0383ee7a7b Fix de l'implémenation de open_graph issue #53 2017-12-23 17:12:13 +01:00
Matthieu Michelet
5422c64c02 implementation des données OpenGraph issue #53 2017-12-23 17:12:13 +01:00
Gabriel Detraz
559fe7b2d5 Merge branch 'code-cleanup' into 'master'
Code cleanup

See merge request federez/re2o!52
2017-12-19 15:02:46 +01:00
lhark
a8f817ff58 Fix indent 2 2017-12-18 21:12:57 -05:00
lhark
cc48d0b36a Fix templates indentation 2017-12-18 20:58:11 -05:00
lhark
f79fef700e Fix machine template indentation 2017-12-18 20:45:48 -05:00