Skip to content

Commit

Permalink
Merge 2bc82b3 into b885955
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksiyVeretiuk committed Mar 12, 2019
2 parents b885955 + 2bc82b3 commit f76efe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openregistry/lots/loki/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'decisions', 'relatedProcesses')
)
lot_edit_role = (blacklist(
'owner_token', 'owner', '_attachments', 'contracts',
'owner_token', 'owner', '_attachments', 'contracts', 'lotType',
'revisions', 'date', 'dateModified', 'documents', 'auctions', 'relatedProcesses',
'lotID', 'mode', 'doc_id', 'rectificationPeriod', 'decisions') + lots_embedded_role)
view_role = (blacklist('owner_token', '_attachments', 'revisions') + lots_embedded_role)
Expand All @@ -87,6 +87,12 @@
'convoy': blacklist('id', 'type'),
}

concierge_edit_role = whitelist(
'status', 'decisions', 'title', 'title_ru', 'title_en',
'lotCustodian', 'description', 'description_ru', 'description_en',
'lotHolder', 'items'
)


lot_roles = {
'create': lot_create_role,
Expand Down Expand Up @@ -140,7 +146,7 @@
'edit.sold': whitelist(),
'invalid': view_role,
'edit.invalid': whitelist(),
'concierge': whitelist('status', 'decisions', 'title', 'lotCustodian', 'description', 'lotHolder', 'items'),
'concierge': concierge_edit_role,
'chronograph': whitelist(),
'caravan': whitelist(),
'convoy': whitelist()
Expand Down
1 change: 1 addition & 0 deletions versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
pyramid = 1.9
setuptools = 36.0.1
schematics = 1.1.3
jsonschema = 2.6.0

0 comments on commit f76efe1

Please sign in to comment.