Skip to content

Commit 4867b75

Browse files
author
Maksym Mykhailenko
committed
docs: improved permissions guide
1 parent 40bc816 commit 4867b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/permissions-guide/permissions-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ Let's say you would like to add a new place in code where you want to check user
3636

3737
- Follow the guides on how to add a new permission in the header of this file.
3838

39-
3. After you add a new permission, regenerate [permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html) by running `npm run generate:doc:permissions`.
40-
41-
4. There are 2 places where you would usually check permissions:
39+
3. There are 2 places where you would usually check permissions:
4240
1. Check if user can call some endpoint (https://github.com/topcoder-platform/tc-project-service/blob/develop/src/permissions/index.js):
4341

4442
```js
@@ -69,6 +67,8 @@ Let's say you would like to add a new place in code where you want to check user
6967
}
7068
```
7169

70+
4. After you've added all the new permissions you wanted, regenerate [permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html) by running `npm run generate:doc:permissions`. Or run `npm run generate:doc:permissions:dev` which would automatically regenerate HTML file on every change - very useful during development.
71+
7272
## References
7373
7474
- [Permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html)

0 commit comments

Comments
 (0)