mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Make some more validation on the token click form
This commit is contained in:
@ -71,7 +71,7 @@ Welcome to the wiki page!
|
||||
p.set_lock(root)
|
||||
p.save()
|
||||
p.set_lock(root)
|
||||
PageRev(page=p, title="", author=root, content="").save()
|
||||
PageRev(page=p, title="Laverie", author=root, content="Fonctionnement de la laverie").save()
|
||||
|
||||
# Here we add a lot of test datas, that are not necessary for the Sith, but that provide a basic development environment
|
||||
if not options['prod']:
|
||||
|
@ -16,7 +16,6 @@ header {
|
||||
right : 8%;
|
||||
left: 40%;
|
||||
background-color:#DDD;
|
||||
height: 3em;
|
||||
}
|
||||
header a {
|
||||
display: inline-block;
|
||||
|
@ -17,7 +17,7 @@
|
||||
<li><a href="{{ url('subscription:subscription') }}">{% trans %}Subscriptions{% endtrans %}</a></li>
|
||||
{% endif %}
|
||||
<h5>{% trans %}Launderette{% endtrans %}</h5>
|
||||
{% if user.is_in_group(settings.SITH_GROUPS['launderette-admin']['name']) %}
|
||||
{% if user.is_in_group(settings.SITH_GROUPS['launderette-admin']['name']) or user.is_in_group(settings.SITH_GROUPS['root']['name']) %}
|
||||
<li><a href="{{ url('launderette:launderette_list') }}">{% trans %}Launderette{% endtrans %}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
@ -60,7 +60,7 @@ class CanEditPropMixin(View):
|
||||
|
||||
class CanEditMixin(View):
|
||||
"""
|
||||
This view makes exactly the same this as its direct parent, but checks the group on the edit_groups field of the
|
||||
This view makes exactly the same thing as its direct parent, but checks the group on the edit_groups field of the
|
||||
object
|
||||
"""
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
@ -78,7 +78,7 @@ class CanEditMixin(View):
|
||||
|
||||
class CanViewMixin(View):
|
||||
"""
|
||||
This view still makes exactly the same this as its direct parent, but checks the group on the view_groups field of
|
||||
This view still makes exactly the same thing as its direct parent, but checks the group on the view_groups field of
|
||||
the object
|
||||
"""
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
|
Reference in New Issue
Block a user