Added has_role_# in addition to the current has_role_X #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It would be nice to be able to refer to roles by their numbers as well as by their short names in the conditional has_role_x. (See discussion ExpressionEngine#4378)
For example, imagine that I'm echoing each of these variables in a template. It would be useful if the final variable also was a "1" -- that way if I rename a role, the template code doesn't need to be changed.
There may be a small chance of collision if some maniac has named a member role as a) only a number (if this is even possible) and b) that number name does not match the member role id number, but frankly, those sorts of people deserve what's coming to them.