Fixed issue with empty passwords for groups

• Fixed:
- issue with empty passwords for groups
This commit is contained in:
mgabdev
2020-09-15 00:14:22 -05:00
parent a842bfb20b
commit 5cb35c7b31
2 changed files with 9 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ class REST::GroupSerializer < ActiveModel::Serializer
end
def has_password
return !!object.password
return !!object.password && object.password.gsub(/\s+/, "").length > 1 && object.password.to_s != "null"
end
def password