Commit 95e8343d authored by John Red Medrano's avatar John Red Medrano

Merge pull request #126 in RMS/api-main-service from red-develop to RMSv2

* commit 'c13346bf':
  fixing
parents 6b252c34 c13346bf
...@@ -77,7 +77,7 @@ class rms: ...@@ -77,7 +77,7 @@ class rms:
rms.access_error rms.access_error
) )
elif rms.user_type(self) == rms.enums_department: elif rms.user_type(self) == rms.enums_department:
if request.data['department'] != rms.user(self).department.id: if request.data['department'] != rms.user(self).department.code:
raise ParseError( raise ParseError(
rms.department_error rms.department_error
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment