|
@@ -313,7 +313,7 @@ def static_plan(request): |
|
|
def list_view(request): |
|
|
def list_view(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -330,7 +330,7 @@ def list_view(request): |
|
|
def tasks(request): |
|
|
def tasks(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -382,7 +382,7 @@ def tasks(request): |
|
|
def tasks_area(request): |
|
|
def tasks_area(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -408,7 +408,7 @@ def tasks_area(request): |
|
|
def action_task(request): |
|
|
def action_task(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -444,7 +444,7 @@ def action_task_area(request): |
|
|
def list_salles(request): |
|
|
def list_salles(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -461,7 +461,7 @@ def list_salles(request): |
|
|
def handle_salle(request): |
|
|
def handle_salle(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -489,7 +489,7 @@ def handle_salle(request): |
|
|
def handle_salle_phy(request): |
|
|
def handle_salle_phy(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -517,7 +517,7 @@ def handle_salle_phy(request): |
|
|
def action_salle(request): |
|
|
def action_salle(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
if not request.user.Staff: |
|
|
if not request.user.Staff: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
@@ -613,7 +613,7 @@ def vote_logo(request): |
|
|
def jm2l_page(request): |
|
|
def jm2l_page(request): |
|
|
if request.user is None: |
|
|
if request.user is None: |
|
|
# Don't answer to users that aren't logged |
|
|
# Don't answer to users that aren't logged |
|
|
raise HTTPForbidden('Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
page = int(request.params.get('page', 1)) |
|
|
page = int(request.params.get('page', 1)) |
|
|
UserNum = request.params.get('user') |
|
|
UserNum = request.params.get('user') |
|
|
|
|
|
|
|
|