This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/java/main/com/topcoder/direct/services/view/action/project/edit Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -731,14 +731,14 @@ public String saveProjectPermissionsAndNotifications() {
731
731
732
732
boolean add = true ;
733
733
long permissionTypeId ;
734
-
735
- if (pp .getPermission (). toLowerCase (). equals ( "full" )) {
734
+
735
+ if ("full" . equalsIgnoreCase ( pp .getPermission ())) {
736
736
permissionTypeId = PermissionType .PERMISSION_TYPE_PROJECT_FULL ;
737
- } else if (pp .getPermission (). toLowerCase (). equals ( "write" )) {
737
+ } else if ("write" . equalsIgnoreCase ( pp .getPermission ())) {
738
738
permissionTypeId = PermissionType .PERMISSION_TYPE_PROJECT_WRITE ;
739
- } else if (pp .getPermission (). toLowerCase (). equals ( "read" )) {
739
+ } else if ("read" . equalsIgnoreCase ( pp .getPermission ())) {
740
740
permissionTypeId = PermissionType .PERMISSION_TYPE_PROJECT_READ ;
741
- } else if (pp .getPermission (). toLowerCase (). equals ( "report" )) {
741
+ } else if ("report" . equalsIgnoreCase ( pp .getPermission ())) {
742
742
permissionTypeId = PermissionType .PERMISSION_TYPE_PROJECT_REPORT ;
743
743
} else {
744
744
// remove
You can’t perform that action at this time.
0 commit comments