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

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

* commit '8b2a8936':
  add component at module key on current user
parents aa46195a 8b2a8936
......@@ -92,7 +92,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
remove = ['Modules', 'Companies', 'Department']
if user.user_type == 'SU':
mod = data.modules.all().values('name', 'component')
mod = data.modules.all().values('name', 'component', 'code')
else:
mod = data.modules.exclude(name__in=remove).values(
"id", 'name', 'parent'
......
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