From 321c0b53672d7aaa47e3ddf6dbde8d66beb9cb4b Mon Sep 17 00:00:00 2001 From: Moritz Fuller <32162112+letmejustputthishere@users.noreply.github.com> Date: Mon, 10 Jul 2023 14:09:46 -0400 Subject: [PATCH] Update access-control.md --- .../backend/motoko/access-control.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/developer-docs/backend/motoko/access-control.md b/docs/developer-docs/backend/motoko/access-control.md index 3ed35e4837..5cf1a4d0fd 100644 --- a/docs/developer-docs/backend/motoko/access-control.md +++ b/docs/developer-docs/backend/motoko/access-control.md @@ -169,17 +169,17 @@ shared({ caller = initializer }) actor class() { }; ``` - Let's take a look at a few key elements of this dapp: +Let's take a look at a few key elements of this dapp: - - You might notice that the `greet` function is a variation on the `greet` function you have seen in previous guides. In this dapp, however, the `greet` function uses a message caller to determine the permissions that should be applied and, based on the permissions associated with the caller, which greeting to display. +- You might notice that the `greet` function is a variation on the `greet` function you have seen in previous guides. In this dapp, however, the `greet` function uses a message caller to determine the permissions that should be applied and, based on the permissions associated with the caller, which greeting to display. - - The dapp defines two custom types—one for `Roles` and one for `Permissions`. +- The dapp defines two custom types—one for `Roles` and one for `Permissions`. - - The `assign_roles` function enables the message caller to assign a role to the principal associated with an identity. +- The `assign_roles` function enables the message caller to assign a role to the principal associated with an identity. - - The `callerPrincipal` function enables you to return the principal associated with an identity. +- The `callerPrincipal` function enables you to return the principal associated with an identity. - - The `my_role` function enables you to return the role that is associated with an identity. +- The `my_role` function enables you to return the role that is associated with an identity. - #### Step 3: Save your changes and close the `main.mo` file to continue. @@ -490,4 +490,4 @@ To stop the local canister execution environment: If you are looking for more information about identity and authentication, check out the following related resources: -- [dfx identity (command reference)](/references/cli-reference/dfx-identity.md). \ No newline at end of file +- [dfx identity (command reference)](/references/cli-reference/dfx-identity.md).