Projet

Général

Profil

0001-backoffice-skip-backoffice-submitters-check-if-there.patch

Frédéric Péters, 27 février 2020 17:43

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH] backoffice: skip backoffice submitters check if there are
 none (#40245)

 wcs/backoffice/management.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/backoffice/management.py
2232 2232

  
2233 2233
    def _q_index(self):
2234 2234
        if self.filled.status == 'draft':
2235
            if self.filled.backoffice_submission:
2235
            if self.filled.backoffice_submission and self.formdef.backoffice_submission_roles:
2236 2236
                for role in get_request().user.get_roles():
2237 2237
                    if role in self.formdef.backoffice_submission_roles:
2238 2238
                        return redirect('../../../submission/%s/%s/' % (
2239
-