Commit 8a141cde authored by John Red Medrano's avatar John Red Medrano

fixing current user

parent ec33aaa0
......@@ -115,7 +115,7 @@ class UserManagementRetreiveSerializer(serializers.ModelSerializer):
# datas = rms_module
mod = data.modules.filter(~Q(name__icontains='header'))
if user.user_type.upper() != enums.UserTypeEnum.USER.value:
if user.user_type.upper() == enums.UserTypeEnum.SUPER_USER.value:
if user.user_type.upper() == enums.UserTypeEnum.SUPER_USER.value and str(app.code) == 'APP-20190923-0000001':
user_module = models.Module.objects.filter(
name__icontains="user"
)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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