I want to implement event handler for ProjectPermissionModificationRequestedEvent, for that I need to compare event.newValue with the string "PROJECT_ADMIN" or other project related permissions.
I have tried
if(event.newValue == "PROJECT_ADMIN")
{
do something
}
else
{
event.cancel("custom msg")
}
But this is not as expected, like even if the value of event.newValue is PROJECT_ADMIN (as printed through log.warn() ) if block doesn't get executed.
Kindly someone suggest the method to achieve the same.
Thanks.