build(python): update and fixate flake8 version

This commit is contained in:
sshakndr
2024-06-20 16:50:29 +07:00
committed by Sergey Linnik
parent 7a5fdc9821
commit ce846f489b
2 changed files with 4 additions and 4 deletions

View File

@ -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"
] ]

View File

@ -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",