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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
1a97187a
Commit
1a97187a
authored
Oct 15, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add class security in DCWorkflow.Variables.Variables.
parent
121f35ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
product/ERP5Type/patches/DCWorkflow.py
product/ERP5Type/patches/DCWorkflow.py
+10
-0
No files found.
product/ERP5Type/patches/DCWorkflow.py
View file @
1a97187a
...
@@ -22,7 +22,10 @@ from Products.DCWorkflow.DCWorkflow import ObjectDeleted, ObjectMoved, aq_parent
...
@@ -22,7 +22,10 @@ from Products.DCWorkflow.DCWorkflow import ObjectDeleted, ObjectMoved, aq_parent
from
Products.DCWorkflow
import
DCWorkflow
from
Products.DCWorkflow
import
DCWorkflow
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
,
TransitionDefinition
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
,
TransitionDefinition
from
Products.DCWorkflow.Transitions
import
TRIGGER_USER_ACTION
from
Products.DCWorkflow.Transitions
import
TRIGGER_USER_ACTION
from
Products.DCWorkflow.permissions
import
ManagePortal
from
AccessControl
import
getSecurityManager
,
ModuleSecurityInfo
,
Unauthorized
from
AccessControl
import
getSecurityManager
,
ModuleSecurityInfo
,
Unauthorized
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.CMFCore.utils
import
getToolByName
from
Products.CMFCore.utils
import
getToolByName
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.CMFCore.utils
import
_getAuthenticatedUser
from
Products.CMFCore.utils
import
_getAuthenticatedUser
...
@@ -805,3 +808,10 @@ if True:
...
@@ -805,3 +808,10 @@ if True:
return
1
return
1
Guard
.
check
=
Guard_check
Guard
.
check
=
Guard_check
# Add class security in DCWorkflow.Variables.Variables.
from
Products.DCWorkflow.Variables
import
Variables
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
ManagePortal
)
Variables
.
security
=
security
InitializeClass
(
Variables
)
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