GUAC-1100: System path comparison should not be startsWith() - there's only one, and no identifiers.

This commit is contained in:
Michael Jumper
2015-02-11 20:24:46 -08:00
parent 514aafbd6d
commit 37227d05e8

View File

@@ -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());