Skip to content

Commit 9c8ab0f

Browse files
authored
Merge pull request #1020 from nep/patch-24
Update single-variables.md
2 parents 478bfcf + 37c6e30 commit 9c8ab0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templates/globals/single-variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ This variable will be substituted for the global character set (UTF-8). It is ty
3333

3434
### `{cp_session_id}`
3535

36-
The session id for the control panel. This is the value needed in the "S=" portion of the control panel URL. Only output for logged-in members who have access to the Control Panel, for instance to build a front-end URL to an add-on in the control panel:
36+
The session id for the control panel. This is the value needed in the "S=" portion of the control panel URL, for instance to build a URL from the front-end to an add-on in the control panel. Will only produce output for logged-in members who have access to the Control Panel.
3737

38-
{if logged_in_role_id == 1}
38+
{if logged_in_primary_role_id == 1}
3939
&bull; <a href="{cp_url}?/cp/addons/settings/my_addon&S={cp_session_id}"></a>
4040
{/if}
4141

4242
### `{cp_url}`
4343

44-
The URL to the control panel for this site. Only output for logged-in members who have access to the Control Panel.
44+
The URL to the control panel for this site. Will only produce output for logged-in members who have access to the Control Panel.
4545

4646
### `{csrf_token}`
4747

0 commit comments

Comments
 (0)