New hasPermission function to add support for Vault
Using new hasPermission function for Vault support