add third parameter to ```isGranted```