Projet

Général

Profil

0001-misc-don-t-add-new-backoffice-directories-to-_q_expo.patch

Frédéric Péters, 07 octobre 2015 23:11

Télécharger (985 octets)

Voir les différences:

Subject: [PATCH] misc: don't add new backoffice directories to _q_exports
 (#8550)

This brings a bypass of the _q_lookup call and the security checks are
therefore skipped.
 wcs/qommon/backoffice/root.py | 2 --
 1 file changed, 2 deletions(-)
wcs/qommon/backoffice/root.py
39 39
class BackofficeRootDirectory(AccessControlled, Directory):
40 40

  
41 41
    def register_directory(cls, urlname, directory):
42
        if not urlname in cls._q_exports:
43
            cls._q_exports.append(urlname)
44 42
        setattr(cls, urlname, directory)
45 43
    register_directory = classmethod(register_directory)
46 44

  
47
-