Commit 3ba9c9cf authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Import SUPER_USER from the right location

Follow up changes from ERP5Security.
parent 72b56997
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
from AccessControl.SecurityManagement import getSecurityManager, \ from AccessControl.SecurityManagement import getSecurityManager, \
setSecurityManager, newSecurityManager setSecurityManager, newSecurityManager
from Products.ERP5Security.ERP5UserManager import SUPER_USER from Products import ERP5Security
def SoftwareInstance_bangAsSelf(self, relative_url=None, reference=None, def SoftwareInstance_bangAsSelf(self, relative_url=None, reference=None,
comment=None): comment=None):
...@@ -43,7 +43,8 @@ def SoftwareInstance_bangAsSelf(self, relative_url=None, reference=None, ...@@ -43,7 +43,8 @@ def SoftwareInstance_bangAsSelf(self, relative_url=None, reference=None,
if (software_instance.getPortalType() == "Slave Instance") and \ if (software_instance.getPortalType() == "Slave Instance") and \
(software_instance.getReference() == reference): (software_instance.getReference() == reference):
# XXX There is no account for Slave Instance # XXX There is no account for Slave Instance
reference = SUPER_USER reference = ERP5Security.SUPER_USER
newSecurityManager(None, self.getPortalObject().acl_users.getUserById( newSecurityManager(None, self.getPortalObject().acl_users.getUserById(
reference)) reference))
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment