Added the hasPermission() function

EV-548
This import is not needed.