Perspective: Error using hasRole(...) with only 1 argument

Why are you forcing the double quotes?
The example only has double quotes to display that the value is a String.