Skip to content

Commit

Permalink
added 'contracting' role
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Apr 28, 2016
1 parent 82d7548 commit f9b205b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openprocurement/tender/limited/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class Options:
'chronograph': chronograph_role, # remove after chronograph fix
'chronograph_view': chronograph_view_role, # remove after chronograph fix
'default': schematics_default_role,
'contracting': whitelist('doc_id', 'owner'),
}

title = StringType(required=True)
Expand Down Expand Up @@ -158,6 +159,8 @@ def get_role(self):
role = 'Administrator'
elif request.authenticated_role == 'chronograph':
role = 'chronograph'
elif request.authenticated_role == 'contracting':
role = 'contracting'
else:
role = 'edit_{}'.format(request.context.status)
return role
Expand Down

0 comments on commit f9b205b

Please sign in to comment.