This is quite reasonable, aside from the variable name which should be isAdmin. A user either is an admin, or isn't. Unless we don't know, then it's null. You are correct this is bad if the point was to represent roles, but it's not supposed to.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: