Commit e1209b39 authored by Ivan Tyagov's avatar Ivan Tyagov

Revert 5348b48f

parent 86b676a1
No related merge requests found
...@@ -26,7 +26,6 @@ from Products.PluggableAuthService.interfaces.plugins import IUserFactoryPlugin ...@@ -26,7 +26,6 @@ from Products.PluggableAuthService.interfaces.plugins import IUserFactoryPlugin
from Products.PluggableAuthService.PropertiedUser import PropertiedUser from Products.PluggableAuthService.PropertiedUser import PropertiedUser
from Products.PluggableAuthService.PropertiedUser import \ from Products.PluggableAuthService.PropertiedUser import \
_what_not_even_god_should_do _what_not_even_god_should_do
from Products.ERP5Security.ERP5UserManager import SUPER_USER
manage_addERP5UserFactoryForm = PageTemplateFile( manage_addERP5UserFactoryForm = PageTemplateFile(
'www/ERP5Security_addERP5UserFactory', globals(), 'www/ERP5Security_addERP5UserFactory', globals(),
...@@ -100,10 +99,6 @@ class ERP5User(PropertiedUser): ...@@ -100,10 +99,6 @@ class ERP5User(PropertiedUser):
As for getRolesInContext, we take into account _getAcquireLocalRoles for As for getRolesInContext, we take into account _getAcquireLocalRoles for
ERP5. ERP5.
""" """
if self.getUserName() == SUPER_USER:
# super user is allowed to any object
return 1
if object_roles is _what_not_even_god_should_do: if object_roles is _what_not_even_god_should_do:
return 0 return 0
......
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