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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
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
from
Products.DCWorkflow
import
DCWorkflow
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
,
TransitionDefinition
from
Products.DCWorkflow.Transitions
import
TRIGGER_USER_ACTION
from
Products.DCWorkflow.permissions
import
ManagePortal
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.WorkflowCore
import
WorkflowException
from
Products.CMFCore.utils
import
_getAuthenticatedUser
...
...
@@ -805,3 +808,10 @@ if True:
return
1
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