Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Fix issues with labels #426

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions app/views/docs/authentication-management.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const users = new sdk.Users(client);

const promise = users.updateLabels(
'[USER_ID]',
[ Role.label('subscriber') ]
[ 'subscriber' ]
);

promise.then(function (response) {
Expand Down Expand Up @@ -252,7 +252,7 @@ $users = new Users($client);

$result = $users->updateLabels(
'[USER_ID]',
[ Role.label('subscriber') ]
[ 'subscriber' ]
);</code></pre>
</div>
</li>
Expand All @@ -275,7 +275,7 @@ users = Users(client)

result = users.update_labels(
'[USER_ID]',
[ Role.label('subscriber') ]
[ 'subscriber' ]
)</code></pre>
</div>
</li>
Expand All @@ -295,7 +295,7 @@ users = Users.new(client)

response = users.update_labels(
user_id: '[USER_ID]',
labels: [ Role.label('subscriber') ]
labels: [ 'subscriber' ]
)</code></pre>
</div>
</li>
Expand All @@ -313,7 +313,7 @@ let users = new sdk.Users(client);

const promise = users.updateLabels(
'[USER_ID]',
[ Role.label('subscriber') ]
[ 'subscriber' ]
);

promise.then(function (response) {
Expand All @@ -337,7 +337,7 @@ final users = Users(client);

final result = await users.updateLabels(
userId: '[USER_ID]',
labels: [ Role.label('subscriber') ],
labels: [ 'subscriber' ],
);</code></pre>
</div>
</li>
Expand All @@ -357,7 +357,7 @@ val users = Users(client)

val response = users.updateLabels(
userId = "[USER_ID]",
labels = [ Role.label('subscriber') ]
labels = [ 'subscriber' ]
)</code></pre>
</div>
</li>
Expand All @@ -375,7 +375,7 @@ let users = Users(client)

let response = try await users.updateLabels(
userId: "[USER_ID]",
labels: [ Role.label('subscriber') ]
labels: [ 'subscriber' ]
)</code></pre>
</div>
</li>
Expand All @@ -393,7 +393,7 @@ var users = new Users(client);

var response = await users.UpdateLabels(
userId: "[USER_ID]",
labels: [ Role.Label('subscriber') ]
labels: [ 'subscriber' ]
);</pre>
</div>
</li>
Expand All @@ -417,4 +417,4 @@ var response = await users.UpdateLabels(
For example, in a todo app, a user can <a href="/docs/client/teams#teamsCreate">create a team</a> for one of their todo lists and <a href="/docs/client/teams#teamsCreateMembership">invite another user</a> to the team to grant the other user access.
The invited user can <a href="/docs/client/teams#teamsUpdateMembershipStatus">accept the invitation</a> to gain access.
If the user's ever removed from the team, they'll lose access again.
</p>
</p>
4 changes: 4 additions & 0 deletions app/views/docs/permissions.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
<td>Role.member([MEMBERSHIP_ID])</td>
<td>Grants access to a specific member of a team. When the member is removed from the team, they will no longer have access.</td>
</tr>
<tr>
<td>Role.label([LABEL_ID])</td>
<td>Grants access to all accounts with a specific label ID. Once the label is removed from the user, they will no longer have access. <a href="/docs/authentication-management#labels">Learn more about labels</a>.</td>
</tr>
</tbody>
</table>

Expand Down