Skip to content

Commit 3efa12f

Browse files
authored
Merge pull request #871 from nep/patch-15
Update entries.md
2 parents d738a7a + 40583f1 commit 3efa12f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/channels/entries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,9 @@ The "count" out of the current entries being displayed. If five entries are bein
893893
<a href="{cp_edit_entry_url}">Edit Entry</a>
894894
{/if}
895895

896-
The URL of the entry form in the control panel where this entry can be edited. It is recommended you wrap this variable in an `{if logged_in}` conditional to hide your control panel's URL from regular site visitors. If you are running a membership based site, hide it behind an appropriate `logged_in_role_id` conditional. For example, to hide this link from everyone but Super Admins:
896+
The URL of the entry form in the control panel where this entry can be edited. It is recommended you wrap this variable in an `{if logged_in}` conditional to hide your control panel's URL from regular site visitors. If you are running a membership-based site, hide it behind an appropriate `logged_in_primary_role_id` conditional or use [exp:member:has_role](/member/member-roles-tags.html#expmemberhas_role). For example, to hide this link from everyone but Super Admins:
897897

898-
{if logged_in_role_id == 1}
898+
{if logged_in_primary_role_id == 1}
899899
<a href="{cp_edit_entry_url}">Edit Entry</a>
900900
{/if}
901901

0 commit comments

Comments
 (0)