Commit 9edc9237 by François C.

Merge branch 'ticket_3966' into 'dev_cooperatic'

Prevent associated people to change shift template if not allowed (by default)

See merge request !213
parents 5484e630 e5ecd5ff
Pipeline #2460 passed with stage
in 1 minute 27 seconds
......@@ -184,6 +184,9 @@ def home(request):
partnerData = cs.get_data_partner(partner_id)
if partnerData['cooperative_state'] == "unsubscribed":
coop_can_change_shift_template = False
if getattr(settings, 'ASSOCIATE_PEOPLE_CAN_CHANGE_SHIFT_TEMPLE_REGISTRATION', False) is False:
if partnerData['is_associated_people'] is True:
coop_can_change_shift_template = False
context = {
'title': 'Espace Membres',
'coop_can_change_shift_template': coop_can_change_shift_template,
......
......@@ -346,6 +346,10 @@
By default, False. Set if coop can or not add shifts in their memberspace calendar
- ASSOCIATE_PEOPLE_CAN_CHANGE_SHIFT_TEMPLE_REGISTRATION = True
By default, False.
### Reception
- RECEPTION_ADD_ADMIN_MODE = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment