From 670f72d7fed62916f44bf52ecb0fe07089bc7eec Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Wed, 24 Oct 2018 22:06:39 +0200
Subject: [PATCH] Change temporary permission to can_attend_VGMs

---
 journals/templates/journals/SciPostPhysCodeb_about.html      | 2 +-
 journals/templates/journals/SciPostPhysComm_about.html       | 2 +-
 journals/templates/journals/SciPostPhys_about.html           | 2 +-
 journals/templates/journals/journals.html                    | 2 +-
 scipost/templates/scipost/EdCol_by-laws.html                 | 2 +-
 scipost/urls.py                                              | 2 +-
 submissions/templates/submissions/sub_and_ref_procedure.html | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/journals/templates/journals/SciPostPhysCodeb_about.html b/journals/templates/journals/SciPostPhysCodeb_about.html
index 22c57d4f2..5c991fb1e 100644
--- a/journals/templates/journals/SciPostPhysCodeb_about.html
+++ b/journals/templates/journals/SciPostPhysCodeb_about.html
@@ -18,7 +18,7 @@
     {% endwith %}
 
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
 
diff --git a/journals/templates/journals/SciPostPhysComm_about.html b/journals/templates/journals/SciPostPhysComm_about.html
index fd2a0daf0..64ee74023 100644
--- a/journals/templates/journals/SciPostPhysComm_about.html
+++ b/journals/templates/journals/SciPostPhysComm_about.html
@@ -18,7 +18,7 @@
     {% endwith %}
 
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
 
diff --git a/journals/templates/journals/SciPostPhys_about.html b/journals/templates/journals/SciPostPhys_about.html
index 6952cb350..00fffa511 100644
--- a/journals/templates/journals/SciPostPhys_about.html
+++ b/journals/templates/journals/SciPostPhys_about.html
@@ -18,7 +18,7 @@
     {% endwith %}
 
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
 
diff --git a/journals/templates/journals/journals.html b/journals/templates/journals/journals.html
index 36e2ab0ea..00ee9cfdd 100644
--- a/journals/templates/journals/journals.html
+++ b/journals/templates/journals/journals.html
@@ -35,7 +35,7 @@
 
 {% block content %}
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
   <h1 class="highlight">SciPost Journals</h1>
diff --git a/scipost/templates/scipost/EdCol_by-laws.html b/scipost/templates/scipost/EdCol_by-laws.html
index 3ffe0f4e1..bb1526af6 100644
--- a/scipost/templates/scipost/EdCol_by-laws.html
+++ b/scipost/templates/scipost/EdCol_by-laws.html
@@ -19,7 +19,7 @@
 
 
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
 
diff --git a/scipost/urls.py b/scipost/urls.py
index 35f70ff76..250f1309f 100644
--- a/scipost/urls.py
+++ b/scipost/urls.py
@@ -37,7 +37,7 @@ urlpatterns = [
     ),
     url(
         r'^PlanSciPost$',
-        permission_required('scipost.can_view_pool')(
+        permission_required('scipost.can_attend_VGMs')(
             TemplateView.as_view(template_name='scipost/PlanSciPost.html')),
         name='PlanSciPost'
     ),
diff --git a/submissions/templates/submissions/sub_and_ref_procedure.html b/submissions/templates/submissions/sub_and_ref_procedure.html
index 5e5c1833b..2928a8c12 100644
--- a/submissions/templates/submissions/sub_and_ref_procedure.html
+++ b/submissions/templates/submissions/sub_and_ref_procedure.html
@@ -21,7 +21,7 @@
     </div>
 </div>
 
-{% if perms.scipost.can_view_pool %}
+{% if perms.scipost.can_attend_VGMs %}
 <div class="container border border-danger">
   <span class="text-danger">DRAFT (POOLVIEW ONLY) - <a href="mailto:admin@scipost.org">COMMENTS WELCOME</a></span>
 
-- 
GitLab