Skip to content

Commit 29ca936

Browse files
committed
Enabled {exp:member:has_role} to check against multiple roles
ExpressionEngine/ExpressionEngine#2749
1 parent 699dec7 commit 29ca936

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/member/member-roles-tags.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ The `{exp:member:has_role}` tag allows you to display or hide its content depend
7272

7373
**Required** ID or role to check against. The content of the tag will be displayed if the user belongs to this role, otherwise `{if no_results}...{/if}` contents will be displayed.
7474

75+
It is also possible to pass multiple roles by separating those with a `|`. In this case, the content will be shown if the member belongs to at least one of the roles.
76+
77+
role_id="6|12"
78+
79+
7580
#### `member_id=`
7681

7782
member_id="147"

0 commit comments

Comments
 (0)