mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
a852c79947
This commit replaces the "mayWrite", "mayRead" and "checkPermissionOnNote" functions with one that returns a sortable permission value. This is done because many places in the code need to do actions based on the fact if the user has no, read or write access. If done with the may-functions then the permission data need to be looked through multiple times. Also, the whole check code is split into more functions that are tested separately and make it easier to understand the process. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> |
||
---|---|---|
.. | ||
docker | ||
public | ||
src | ||
test | ||
.editorconfig | ||
.env | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.json | ||
.prettierrc.json.license | ||
CHANGELOG.md | ||
jest-e2e.json | ||
jest-e2e.json.license | ||
nest-cli.json | ||
nest-cli.json.license | ||
package.json | ||
package.json.license | ||
tsconfig.build.json | ||
tsconfig.build.json.license | ||
tsconfig.json | ||
tsconfig.json.license |