mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
build(python): update and fixate flake8 version
This commit is contained in:
@ -25,7 +25,7 @@ email = "support@onlyoffice.com"
|
|||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
development = [
|
development = [
|
||||||
"flake8>=6.0.0",
|
"flake8==7.1.0",
|
||||||
"mypy>=1.4.1",
|
"mypy>=1.4.1",
|
||||||
"types-requests>=2.31.0"
|
"types-requests>=2.31.0"
|
||||||
]
|
]
|
||||||
|
|||||||
@ -265,14 +265,14 @@ def edit(request):
|
|||||||
'key': docKey,
|
'key': docKey,
|
||||||
'info': infObj,
|
'info': infObj,
|
||||||
'permissions': { # the permission for the document to be edited and downloaded or not
|
'permissions': { # the permission for the document to be edited and downloaded or not
|
||||||
'comment': (edMode != 'view') & (edMode != 'fillForms') & (edMode != 'embedded') \
|
'comment': (edMode != 'view') & (edMode != 'fillForms') & (edMode != 'embedded')
|
||||||
& (edMode != "blockcontent"),
|
& (edMode != "blockcontent"),
|
||||||
'copy': 'copy' not in user.deniedPermissions,
|
'copy': 'copy' not in user.deniedPermissions,
|
||||||
'download': 'download' not in user.deniedPermissions,
|
'download': 'download' not in user.deniedPermissions,
|
||||||
'edit': canEdit & ((edMode == 'edit') | (edMode == 'view') | (edMode == 'filter') \
|
'edit': canEdit & ((edMode == 'edit') | (edMode == 'view') | (edMode == 'filter')
|
||||||
| (edMode == "blockcontent")),
|
| (edMode == "blockcontent")),
|
||||||
'print': 'print' not in user.deniedPermissions,
|
'print': 'print' not in user.deniedPermissions,
|
||||||
'fillForms': (edMode != 'view') & (edMode != 'comment') \
|
'fillForms': (edMode != 'view') & (edMode != 'comment')
|
||||||
& (edMode != "blockcontent"),
|
& (edMode != "blockcontent"),
|
||||||
'modifyFilter': edMode != 'filter',
|
'modifyFilter': edMode != 'filter',
|
||||||
'modifyContentControl': edMode != "blockcontent",
|
'modifyContentControl': edMode != "blockcontent",
|
||||||
|
|||||||
Reference in New Issue
Block a user