Commit c13346bf authored by John Red Medrano's avatar John Red Medrano

fixing

parent 1241e766
......@@ -77,7 +77,7 @@ class rms:
rms.access_error
)
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(
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