Fix a function comparison to 1
(getRole == 1 instead of getRole() == 1).
Add isAdmin function.