Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
e1209b39
Commit
e1209b39
authored
Jan 27, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert
5348b48f
parent
86b676a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
product/ERP5Security/ERP5UserFactory.py
product/ERP5Security/ERP5UserFactory.py
+0
-5
No files found.
product/ERP5Security/ERP5UserFactory.py
View file @
e1209b39
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment