Commit 7b117113 authored by Anuj Gupta's avatar Anuj Gupta
Browse files

Merge branch 'entitlement-role-fix1' into 'master'

Entitlement role fix1

See merge request !12
parents 49b9d47c 396cdee7
Pipeline #25652 failed with stages
in 12 minutes and 34 seconds
......@@ -86,8 +86,8 @@ public class EntitlementsApi {
if(memberInfo.getRole().trim().isEmpty()) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role cannot be empty", "Role cannot be empty");
}
if(!(memberInfo.getRole().equalsIgnoreCase("MEMBER") || memberInfo.getRole().equalsIgnoreCase("OWNER"))) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Role need to be either MEMBER or OWNER", "Role need to be either MEMBER or OWNER");
if(!(memberInfo.getRole().equals("MEMBER") || memberInfo.getRole().equals("OWNER"))) {
throw new AppException(HttpStatus.BAD_REQUEST.value(), "Invalid role provided", "Role need to be either MEMBER or OWNER");
}
try {
......
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