Commit 396cdee7 authored by Gokul Nagare's avatar Gokul Nagare
Browse files

conflicts resolved

parents 62d33446 b5a557db
Pipeline #25459 failed with stage
in 2 minutes and 21 seconds
...@@ -86,8 +86,8 @@ public class EntitlementsApi { ...@@ -86,8 +86,8 @@ public class EntitlementsApi {
if(memberInfo.getRole().trim().isEmpty()) { if(memberInfo.getRole().trim().isEmpty()) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role cannot be empty", "Role cannot be empty"); throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role cannot be empty", "Role cannot be empty");
} }
if(!(memberInfo.getRole().equalsIgnoreCase("MEMBER") || memberInfo.getRole().equalsIgnoreCase("OWNER"))) { if(!(memberInfo.getRole().equals("MEMBER") || memberInfo.getRole().equals("OWNER"))) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role need to be either MEMBER or OWNER", "Role need to be either MEMBER or OWNER"); throw new AppException(HttpStatus.BAD_REQUEST.value(), "Invalid role provided", "Role need to be either MEMBER or OWNER");
} }
try { try {
......
Supports Markdown
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