thomas girod
3143d3d91a
reorganize imports with ruff
2024-06-26 12:35:38 +02:00
thomas girod
9bdf3fc4ac
use ruff for formating
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-06-26 12:35:14 +02:00
e1bf7caa9a
Fix CVE-2023-31047
2024-06-24 13:27:22 +02:00
Julien Constant
b30ee0a27a
[FIX] Correction de bugs ( #617 )
...
* Fix #600
* Fix #602
* Fixes & améliorations du nouveau CSS (#616 )
* Fix #604
* should fix #605
* Fix #608
* Update core/views/site.py
Co-Authored-By: thomas girod <56346771+imperosol@users.noreply.github.com>
* Added back the permission denied
* Should fix #609
* Fix failing test when 2 user are merged
* Should fix #610
* Should fix #627
* Should fix #109
Block les URLs suivantes lorsque le fichier se trouve dans le dir `profiles` ou `SAS` :
- `/file/<id>/`
- `/file/<id>/[delete|prop|edit]`
> Les urls du SAS restent accessiblent pour les roots & les admins SAS
> Les urls de profiles sont uniquement accessiblent aux roots
* Fix root dir of SAS being unnaccessible for sas admins
⚠️ need to edit the SAS directory & save it (no changes required in sas directory properties)
* Remove overwritten code
* Should fix duplicated albums in user profile (wtf)
* Fix typo
* Extended profiles picture access to board members
* Should fix #607
* Fix keyboard navigation not working properly
* Fix user tagged pictures section inside python rather than in the template
* Update utils.py
* Apply suggested changes
* Fix #604
* Fix #608
* Added back the permission denied
* Should fix duplicated albums in user profile (wtf)
* Fix user tagged pictures section inside python rather than in the template
* Apply suggested changes
---------
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2023-05-02 13:07:36 +02:00
thomas girod
ef968f3673
Better usage of cache for groups and clubs related operations ( #634 )
...
* Better usage of cache for group retrieval
* Cache clearing on object deletion or update
* replace signals by save and delete override
* add is_anonymous check in is_owned_by
Add in many is_owned_by(self, user) methods that user is not anonymous. Since many of those functions do db queries, this should reduce a little bit the load of the db.
* Stricter usage of User.is_in_group
Constrain the parameters that can be passed to the function to make sure only a str or an int can be used. Also force to explicitly specify if the group id or the group name is used.
* write test and correct bugs
* remove forgotten populate commands
* Correct test
2023-05-02 12:36:59 +02:00
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 ( #629 )
2023-04-22 15:32:31 +02:00
Julien Constant
8e7c025e47
[FIX] Broken link in readme and license fix (& update) ( #591 )
2023-04-04 18:39:45 +02:00
Julien Constant
28f397574f
Amélioration des pages utilisateurs pour les petits écrans ( #578 , #520 )
...
- Refonte de l'organisation des pages utilisateurs (principalement du front)
- Page des parrains/fillots
- Page d'édition du profil
- Page du profil
- Page des outils
- Page des préférences
- Page des stats utilisateurs
- Refonte du CSS / organisation de la navbar principale (en haut de l'écran)
- Refonte du CSS de la navbar bleu clair (le menu)
- Refonte du CSS du SAS :
- Page de photo
- Page d'albums
2023-03-30 14:38:40 +02:00
Théo DURR
773808fa59
Disabled Galaxy button & Removed 404 exception display
2023-03-08 12:50:52 +01:00
Théo DURR
c1e59a0676
Disabled galaxy feature (only visually)
2023-03-07 21:32:37 +01:00
Théo DURR
05febc60bd
Merge branch 'master' into taiste
2023-03-04 16:35:41 +01:00
Skia
b7f20fed6c
Galaxy ( #575 )
...
Co-authored-by: Skia <florent.jacquet@eshard.com>
2023-03-02 15:11:23 +01:00
Skia
585923c827
Add galaxy ( #562 )
...
* style.scss: lint
* style.scss: add 'th' padding
* core: populate: add much more data for development
* Add galaxy
2023-02-07 12:08:25 +01:00
thomas girod
99827e005b
upgrade re_path to path ( #533 )
2023-01-09 22:07:03 +01:00
thomas girod
73305c0b28
Implémentation 3DSv2 + résolution bugs eboutic + amélioration pages admin ( #558 )
...
Eboutic :
- Implémentation de la norme 3DSecure v2 pour les paiement par carte bancaire
- Amélioration générale de l'interface utilisateur
- Résolution du problème avec les caractères spéciaux dans le panier sur Safari
- Réparation du cookie du panier de l'eboutic qui n'était pas fonctionnel
Autre :
- Mise à jour de la documentation
- Mise à jour des dépendances Javascript
- Suppression du code inutilisé dans `subscription/models.py`
- Amélioration des pages administrateur (back-office Django)
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
Co-authored-by: Théo DURR <git@theodurr.fr>
Co-authored-by: Julien Constant <julienconstant190@gmail.com>
2023-01-09 20:53:12 +01:00
Thomas Girod
fe9e5ce861
integration of 3D secure v2 for eboutic bank payment
2022-11-30 22:52:56 +01:00
47a332445c
Add feature to download all of your pictures as a user
2022-08-07 16:08:56 +02:00
4f00224f0d
Update dependencies, apply black and fix wrong default SITH_COUNTER_OFFICES values
2022-08-04 18:42:29 +02:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Skia
a0e4e9e8e3
Update 'black' version
2022-02-28 10:01:32 +01:00
Cyrille
b630742fd4
#113 : bug fixed
2021-11-30 17:54:51 +01:00
Ailé
d8b69e9b45
Updated text and translations to be more inclusive
2021-11-18 16:24:14 +01:00
Cyrille Stroesser
5195352975
fixed black pipeline
2021-11-18 15:14:39 +01:00
Cyrille Stroesser
deb8f865df
fix #110
2021-11-18 15:04:25 +01:00
Ailé
707459acd6
Changed word 'Godfather' to 'Family'
2021-11-05 21:01:19 +01:00
Celeste
677a9da469
Merge branch 'master' into gender_options
2021-10-11 17:13:06 +02:00
Céleste
1f7752d457
Add pronouns to profile ; Update gender settings
...
Add pronouns to option list in profile
Modify "Sex" translation to "Genre"
Added "Other" to sex option list (alongside Man and Woman)
update DB,add default value to Pronouns field
Update views.py
2021-10-06 14:12:34 +02:00
tleb
49a0ade315
core: create TzAwareDateTimeField to replace forms.DateTimeField
2021-09-29 15:24:06 +02:00
tleb
a38ab57ddf
search: sort by User.last_update
2021-09-28 01:44:15 +02:00
tleb
30091ef69c
search: ascii everywhere and unformalized whitespace
2021-09-28 01:44:15 +02:00
f34f5fe693
Upgrade black and format accordingly
2020-08-27 15:59:42 +02:00
5c8fa1b9e7
core: add UserIsRootMixin and an admin delete view for memberships
2019-11-24 19:23:43 +01:00
4d04b21f04
Merge branch 'cleanup-forms' into 'master'
...
Remove unused multiple-select library
See merge request ae/Sith!250
2019-10-17 14:46:02 +02:00
9278419345
core: rename GenericContentPermission into GenericContentPermissionMixinBuilder
2019-10-17 11:56:02 +02:00
a6088c0e4a
core: refactor permissions mixins
2019-10-17 11:24:51 +02:00
fe9164bfef
core: don't use try/except to catch type of view in permissions mixins
2019-10-16 19:28:32 +02:00
tleb
ad3f003fbb
Remove unused multiple-select library
2019-10-16 14:28:53 +02:00
d7075eb762
django2.2: fix breaking change for getting uploaded files size
2019-10-08 22:46:38 +02:00
cf3f5ea60c
django2.2: fix django server crash because of breaking change in widget rendering method
2019-10-08 22:46:37 +02:00
59185ab2a8
django2.2: rewrite login and password stack because of removed API
2019-10-08 22:46:37 +02:00
308cf30a5a
django2.2: replace deprecated login view
2019-10-08 22:46:37 +02:00
97c316b62e
django2.2: replace removed is_anonymous() and is_authenticated to their now used counterparts
2019-10-08 22:46:03 +02:00
00bd60ef4f
django2.2: add exception parameter in forbidden and not_found views
2019-10-08 22:46:02 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
db10f7b963
documentation: tutorial about rights management
2019-10-07 23:51:37 +02:00
411c117f0f
Merge branch 'performances' into 'master'
...
Improve performances on forum and SAS
See merge request ae/Sith!235
2019-09-16 14:23:52 +02:00
63ec5d68f4
core: fix error 500 when editing properties of user without linked customer
2019-09-15 17:05:07 +02:00
1f86827e46
core: improve performances on not found images
2019-09-15 16:22:13 +02:00
f1b3a174b6
core: improve performances on notification reads and display
2019-09-09 00:45:08 +02:00
Cyl
9e0c4e70d4
[COM] Make the news visible for non-authenticated user and birthday visible for subriber only
2019-08-28 20:40:31 +02:00
9b7b96a310
core: add UserIsLoggedMixin to check if an user is not anonymous
2019-07-15 12:27:19 +02:00
b18746e769
core: fix error 500 when accessing user tools with anonymous user
2019-07-13 04:58:23 +02:00
616b7ccfc8
Nice user interface and permission rework
2019-05-20 17:52:39 +02:00
9f2a0deeb9
Merge branch 'mailing' into 'master'
...
Enhance mailing list edition for clubs with brand new form
See merge request ae/Sith!200
2019-05-20 17:39:43 +02:00
8ebf5af3d6
Merge branch 'markdown-editor' into 'master'
...
core: replace simplemde with easymde
See merge request ae/Sith!202
2019-05-18 02:49:36 +02:00
Cyl
355a51d2ce
core: fix special caracter in user and forum search
2019-05-09 19:51:55 +02:00
Cyl
ad6f17d309
core: replace simplemde with easymde
2019-05-06 20:42:35 +02:00
Cyl
bf06aea680
core: fix whitespaces in user and forum search
2019-05-06 20:11:49 +02:00
a0e39b8904
clubs: rewrite MailingForm to include everything in one place
...
Everything is handled on the same view, no more redirection hacks
Remove get_context_data in DetailFormView since it's already done by django
2019-05-01 15:49:30 +02:00
96e33815f5
Group: simplify GroupTemplateView and better group display
2019-04-22 22:55:55 +02:00
ee89327742
Group: add translations
2019-04-22 22:55:55 +02:00
b693ee32f2
Group: add a label on users to delete
2019-04-22 22:55:54 +02:00
08d03087a4
core: create a DetailFormView
2019-04-22 22:55:54 +02:00
34459f83ec
Group: Groups: allow bulk removing of users from a group
2019-04-22 22:55:54 +02:00
5cc0760e2c
Groups: allow bulk import of users on a group
2019-04-22 22:55:54 +02:00
f6553a8f52
Group management enhacement
2019-04-22 22:55:53 +02:00
19c1361e47
core: fix heading in MarkdownInput
2018-12-19 14:10:39 +01:00
542a2ede32
core: translations for MarkdownInupt
2018-12-19 14:02:45 +01:00
775f456c40
core: introduce new markdown input
...
To fix
* Avoid blinking in preview
* Don't insert stupid space on empty textarea
2018-12-14 16:24:11 +01:00
e421a2b4cd
forum: increase search speed by optimizing permission filter
2018-12-13 20:33:34 +01:00
347caa3b6a
forum and core: fix error 500 when query is empty on search
2018-12-13 20:33:34 +01:00
884855c178
forum and core: remove CanViewSearchMixin and use specialized view instead
2018-12-13 20:33:34 +01:00
1de77f2fdd
core: fix typo
2018-12-13 20:33:34 +01:00
076b10e325
forum and core: add a dedicated mixin to exclude unauthorized search results
2018-12-13 20:33:34 +01:00
3fdb83c1c2
forum and core: add access rights on search query
2018-12-13 20:33:34 +01:00
Skia
aba4207423
core: improve search index with 'autocomplete'
2018-12-05 14:59:14 +01:00
Skia
65e0b15b31
Update Haystack indexer to use Xapian
2018-11-26 21:25:02 +01:00
f4122bbc37
sentry: deal with sentry's js as external resource
2018-10-10 15:27:21 +02:00
bdd8427758
sentry: integration with error 500 page
2018-10-10 02:18:19 +02:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
Grégoire Duvauchelle
afe78ea634
Add captcha to registration form
2018-07-06 11:35:02 +02:00
5c4a16d14c
Fix user pictures display
2018-06-10 18:43:39 +02:00
08de5dfe6a
Migration to django 1.11
2018-06-10 16:31:58 +02:00
Skia
0d3c34c155
core/models: refactor SithFile moving and add methods to manage filesystem
...
Signed-off-by: Skia <skia@libskia.so>
2018-04-16 18:35:00 +02:00
d49f7858d3
Better ui for group selection on election and wiki
2017-12-10 21:37:50 +01:00
e3fd3b81ab
Add gift function
2017-11-06 00:30:37 +01:00
Skia
d5c6695f80
core: improve notification callback system
...
Signed-off-by: Skia <skia@libskia.so>
2017-10-15 12:00:33 +02:00
Skia
7879b6dd6b
core: add family graphs
...
Signed-off-by: Skia <skia@libskia.so>
2017-10-11 12:30:33 +02:00
4369d9f593
Found a way to avoid strange error for club page
2017-10-06 17:44:41 +02:00
baa7be69e4
Better integration of wiki pages on clubs
2017-10-06 11:09:31 +02:00
fe69cbcee1
Add page for clubs and inactive clubs
2017-10-06 11:09:29 +02:00
Skia
0184b9c29b
core, com: make permanent notifications for news to moderate
...
This needs to be made for other stuff, like the SAS or the files...
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 13:17:23 +02:00
Skia
dd5926b404
core: fix notif ordering
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-06 13:05:51 +02:00
Skia
9f259b35bd
core, counter: add preferences for counter notifications
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-02 12:42:07 +02:00
Skia
22151ef3b3
core: display news page in place of index for logged in users
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-01 12:33:23 +02:00
a9e23920ee
Matmat renames
2017-08-15 18:05:07 +02:00
b7c382a1a8
Basic search structure
2017-08-15 18:05:07 +02:00
Skia
61d2765510
core: refactor user picture page algorithm
...
Signed-off-by: Skia <skia@libskia.so>
2017-08-02 20:12:41 +02:00
e7de8b2aec
Format core
2017-06-13 10:04:13 +02:00
Skia
a89fb23d33
That's just a ridiculous little fix
...
Signed-off-by: Skia <skia@libskia.so>
2017-06-10 20:03:37 +02:00