Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Security and Compliance
entitlements-ibm
Commits
396cdee7
Commit
396cdee7
authored
Feb 09, 2021
by
Gokul Nagare
Browse files
conflicts resolved
parents
62d33446
b5a557db
Pipeline
#25459
failed with stage
in 2 minutes and 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/ibm/entitlements/api/EntitlementsApi.java
View file @
396cdee7
...
...
@@ -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
().
equals
IgnoreCase
(
"MEMBER"
)
||
memberInfo
.
getRole
().
equals
IgnoreCase
(
"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
{
...
...
Anuj Gupta
@anujgupta
mentioned in commit
254c5121
·
Feb 11, 2021
mentioned in commit
254c5121
mentioned in commit 254c5121f8e2b06963774378d13b41991b95dd32
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment