Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
8316dcce
Commit
8316dcce
authored
Dec 15, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflow: guard transition by 'Modify portal content' permission by default.
parent
2d0eeaaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
product/ERP5Type/patches/DCWorkflow.py
product/ERP5Type/patches/DCWorkflow.py
+8
-0
No files found.
product/ERP5Type/patches/DCWorkflow.py
View file @
8316dcce
...
...
@@ -340,6 +340,14 @@ def DCWorkflowDefinition_getWorklistVariableMatchDict(self, info,
DCWorkflowDefinition
.
security
.
declarePrivate
(
'getWorklistVariableMatchDict'
)
DCWorkflowDefinition
.
getWorklistVariableMatchDict
=
DCWorkflowDefinition_getWorklistVariableMatchDict
TransitionDefinition__init__orig
=
TransitionDefinition
.
__init__
def
TransitionDefinition__init__
(
self
,
*
args
,
**
kw
):
TransitionDefinition__init__orig
(
self
,
*
args
,
**
kw
)
self
.
guard
=
Guard
()
self
.
guard
.
permissions
=
(
'Modify portal content'
,)
TransitionDefinition
.
__init__
=
TransitionDefinition__init__
class
ValidationFailed
(
Exception
):
"""Transition can not be executed because data is not in consistent state"""
__allow_access_to_unprotected_subobjects__
=
{
'msg'
:
1
}
...
...
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