this makes security.context isGranted work too