GUAC-1100: System path comparison should not be startsWith() - there's only one, and no identifiers.
This commit is contained in:
1 parent
514aafbd6d
commit
37227d05e8
1 file changed
+1
-1
+1
-1
@@ -480,7 +480,7 @@ public class UserRESTService {
|
||||
}
|
||||
|
||||
// Create system permission if path is system path
|
||||
else if (path.startsWith(SYSTEM_PERMISSION_PATCH_PATH)) {
|
||||
else if (path.equals(SYSTEM_PERMISSION_PATCH_PATH)) {
|
||||
|
||||
// Get identifier and type from patch operation
|
||||
SystemPermission.Type type = SystemPermission.Type.valueOf(patch.getValue());
|
||||
|
||||
Reference in new issue
Block a user