Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
938e2ce0
Commit
938e2ce0
authored
Dec 22, 2016
by
Sli
Browse files
Fix rights in election
parent
177e39bd
Changes
1
Show whitespace changes
Inline
Side-by-side
election/views.py
View file @
938e2ce0
...
...
@@ -134,9 +134,6 @@ class CandidatureCreateView(CanCreateMixin, FormView):
data
=
form
.
clean
()
res
=
super
(
FormView
,
self
).
form_valid
(
form
)
data
[
'election'
]
=
Election
.
objects
.
get
(
id
=
self
.
election_id
)
if
data
[
'user'
].
is_root
:
self
.
create_candidature
(
data
)
return
res
for
grp
in
data
[
'election'
].
candidature_groups
.
all
():
if
data
[
'user'
].
is_in_group
(
grp
):
self
.
create_candidature
(
data
)
...
...
Write
Preview
Supports
Markdown
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