making change to is? function to check privileges to perform action in terms of role