mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 11:04:20 +00:00
Better club roles in settings
This commit is contained in:
parent
1acac17d7e
commit
6c8671c160
@ -423,17 +423,22 @@ SITH_SUBSCRIPTIONS = {
|
|||||||
# To be completed....
|
# To be completed....
|
||||||
}
|
}
|
||||||
|
|
||||||
SITH_CLUB_ROLES = {
|
SITH_CLUB_ROLES = {}
|
||||||
10: _('President'),
|
|
||||||
9: _('Vice-President'),
|
SITH_CLUB_ROLES_ID = {
|
||||||
7: _('Treasurer'),
|
'President': 10,
|
||||||
5: _('Communication supervisor'),
|
'Vice-President': 9,
|
||||||
4: _('Secretary'),
|
'Treasurer': 7,
|
||||||
3: _('IT supervisor'),
|
'Communication supervisor': 5,
|
||||||
2: _('Board member'),
|
'Secretary': 4,
|
||||||
1: _('Active member'),
|
'IT supervisor': 3,
|
||||||
0: _('Curious'),
|
'Board member': 2,
|
||||||
}
|
'Active member': 1,
|
||||||
|
'Curious': 0,
|
||||||
|
}
|
||||||
|
|
||||||
|
for role in SITH_CLUB_ROLES_ID:
|
||||||
|
SITH_CLUB_ROLES[SITH_CLUB_ROLES_ID[role]] = _(role)
|
||||||
|
|
||||||
# This corresponds to the maximum role a user can freely subscribe to
|
# This corresponds to the maximum role a user can freely subscribe to
|
||||||
# In this case, SITH_MAXIMUM_FREE_ROLE=1 means that a user can set himself as "Membre actif" or "Curieux", but not higher
|
# In this case, SITH_MAXIMUM_FREE_ROLE=1 means that a user can set himself as "Membre actif" or "Curieux", but not higher
|
||||||
|
Loading…
Reference in New Issue
Block a user