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
Léo-Paul Géneau
erp5
Commits
30488ba1
Commit
30488ba1
authored
Aug 14, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5/Extensions: Remove unused Extension untouched for years
parent
714520cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
product/ERP5/Extensions/CheckAllPermissions.py
product/ERP5/Extensions/CheckAllPermissions.py
+0
-24
No files found.
product/ERP5/Extensions/CheckAllPermissions.py
deleted
100644 → 0
View file @
714520cf
def
_checkPermission
(
folder
):
msg
=
''
if
hasattr
(
folder
,
'objectValues'
):
for
child
in
folder
.
objectValues
():
msg
+=
_checkPermission
(
child
)
if
hasattr
(
folder
,
'valid_roles'
):
valid_role_list
=
folder
.
valid_roles
()
manager_index
=
list
(
valid_role_list
).
index
(
'Manager'
)
permission_list
=
folder
.
permission_settings
()
for
permission
in
permission_list
:
if
permission
[
'acquire'
]
==
''
:
for
role
in
permission
[
'roles'
]:
name
=
role
[
'name'
]
pos
=
name
.
find
(
'r'
)
index
=
int
(
name
[
pos
+
1
:])
if
manager_index
==
index
:
if
role
[
'checked'
]
==
''
:
msg
+=
'%s: %s does not contain Manager
\
n
'
%
(
folder
.
getUrl
(),
permission
[
'name'
])
break
return
msg
def
ERP5Site_checkAllPermissions
(
self
):
portal
=
self
.
portal_url
.
getPortalObject
()
return
_checkPermission
(
portal
)
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