diff --git a/geonode/security/registry.py b/geonode/security/registry.py index 81f84274281..cd924f2ebc8 100644 --- a/geonode/security/registry.py +++ b/geonode/security/registry.py @@ -34,6 +34,11 @@ def add(self, module_path): self.__check_item(item) self.REGISTRY.append(item) + def remove(self, module_path): + item = import_string(module_path)() + self.__check_item(item) + self.REGISTRY.remove(item) + def reset(self): self.REGISTRY = []