Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
e5ecd5ff
Commit
e5ecd5ff
authored
Oct 25, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent associated people to change shift template if not allowed (by default)
parent
5484e630
Pipeline
#2459
passed with stage
in 2 minutes 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
views.py
members_space/views.py
+3
-0
config.md
outils/config.md
+4
-0
No files found.
members_space/views.py
View file @
e5ecd5ff
...
@@ -184,6 +184,9 @@ def home(request):
...
@@ -184,6 +184,9 @@ def home(request):
partnerData
=
cs
.
get_data_partner
(
partner_id
)
partnerData
=
cs
.
get_data_partner
(
partner_id
)
if
partnerData
[
'cooperative_state'
]
==
"unsubscribed"
:
if
partnerData
[
'cooperative_state'
]
==
"unsubscribed"
:
coop_can_change_shift_template
=
False
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
=
{
context
=
{
'title'
:
'Espace Membres'
,
'title'
:
'Espace Membres'
,
'coop_can_change_shift_template'
:
coop_can_change_shift_template
,
'coop_can_change_shift_template'
:
coop_can_change_shift_template
,
...
...
outils/config.md
View file @
e5ecd5ff
...
@@ -346,6 +346,10 @@
...
@@ -346,6 +346,10 @@
By default, False. Set if coop can or not add shifts in their memberspace calendar
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
-
RECEPTION_ADD_ADMIN_MODE = True
-
RECEPTION_ADD_ADMIN_MODE = True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment