add third parameter to ```isGranted```
Merge pull request #12 from jdeniau/patch-1

add third parameter to ```isGranted```