Commit graph

1801 commits

Author SHA1 Message Date
Philip Molares
f11f3b0931 test: default permissions on newly created notes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
16c6f6e572 feat: add default permissions to newly created notes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
df976b5fe1 feat(config): add config vars for default permissions for special groups
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-18 21:29:35 +02:00
Tilman Vatteroth
7dd093a44f test: Add helper functions for creation of mock config
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Tilman Vatteroth
290fea2703 refactor(permissions): Add docs and simplify functions
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
Philip Molares
bdedf783ec refactor: remove additional copyright text
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-18 21:29:35 +02:00
Philip Molares
2ea2459c9b test(unit): fix notes service
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-18 21:29:35 +02:00
David Mehren
4188b21685 docs: clarify comments for orphanedRowAction
Co-authored-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00
David Mehren
a626ace4b9 fix(history-entry): remove composite primary keys
TypeORM promises to support composite primary keys,
but that does not work in reality.
This replaces the composite key used in the permission entities with
a single generated primary key and
a unique index on the relation columns.

See https://github.com/typeorm/typeorm/issues/8513

Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00
David Mehren
d1c3058655 fix(permissions): remove composite primary keys
TypeORM promises to support composite primary keys,
but that does not work in reality.
This replaces the composite key used in the permission entities with
a single generated primary key and
a unique index on the relation columns.

See https://github.com/typeorm/typeorm/issues/8513

Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:57:52 +02:00
David Mehren
2689f9f3dc refactor(media-upload): explicitly use public note ID
Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:42:26 +02:00
David Mehren
2c1e0517ff refactor: use integer primary keys
Closes #1292

Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-18 20:42:26 +02:00
Yannick Bungers
499f632d8d Split methods getAuthTokenAndValidate and createTokenForUser
Signed-off-by: Yannick Bungers <git@innay.de>
2022-09-18 20:11:51 +02:00
renovate[bot]
c835339633 chore(deps): update dependency mkdocs-material to v8.5.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-18 19:14:21 +02:00
renovate[bot]
a3d2c9106e fix(deps): update dependency sqlite3 to v5.1.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-18 19:06:40 +02:00
renovate[bot]
65d167ccfc chore(deps): update linters to v5.37.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-18 19:06:13 +02:00
renovate[bot]
66956e94e9 chore(deps): update test packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 21:23:29 +00:00
renovate[bot]
be7072f580 chore(deps): update dependency mkdocs-material to v8.4.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 18:17:37 +00:00
renovate[bot]
b58f5af0bb chore(deps): update dependency eslint to v8.23.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 15:11:07 +00:00
renovate[bot]
916728adce chore(deps): update dependency @nestjs/cli to v9.1.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 12:21:24 +00:00
renovate[bot]
ee2541883b chore(deps): update definitelytyped
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 09:23:46 +00:00
renovate[bot]
4716afe282 chore(deps): update node.js to cf40424
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-17 05:40:45 +00:00
Philip Molares
87e2502c6e feat: add permission routes to private api
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-09-11 20:08:24 +02:00
David Mehren
d385fb408d test: configure ts-jest in transform
Signed-off-by: David Mehren <git@herrmehren.de>
2022-09-11 16:56:32 +02:00
renovate[bot]
c9fcb841aa chore(deps): update dependency ts-jest to v29
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-11 16:56:32 +02:00
renovate[bot]
8c071ff07d chore(deps): update dependency @types/jest to v29.0.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-11 14:41:55 +00:00
renovate[bot]
c29e3ee3b7 chore(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 23:12:15 +00:00
renovate[bot]
69cf1e8bd4 chore(deps): update dependency jest to v29.0.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 20:10:23 +00:00
renovate[bot]
0f5028d515 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 16:24:01 +00:00
renovate[bot]
aadfa08e01 chore(deps): update dependency mkdocs-material to v8.4.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 13:40:13 +00:00
renovate[bot]
df10f073d1 chore(deps): update dependency @types/node to v16.11.58
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 10:13:05 +00:00
renovate[bot]
45c57ade9d chore(deps): update node.js to ee2abfe
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-10 04:38:06 +00:00
renovate[bot]
2ebe642a00 fix(deps): update dependency @hedgedoc/realtime to v0.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-08 17:39:25 +02:00
renovate[bot]
66bf6772db chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-05 04:10:30 +00:00
renovate[bot]
bfa611b136 chore(deps): update dependency @types/jest to v29
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-04 21:01:09 +02:00
renovate[bot]
f4b1350a5e chore(deps): update linters to v5.36.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-04 20:52:14 +02:00
renovate[bot]
f567ce86aa chore(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-03 20:24:45 +00:00
renovate[bot]
a55cde376e chore(deps): update dependency jest to v29.0.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-03 16:53:59 +00:00
renovate[bot]
44f02bae16 chore(deps): update dependency eslint-plugin-local-rules to v1.3.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-03 13:22:29 +00:00
renovate[bot]
f81571f70f chore(deps): update node.js to 717a3d7
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-09-03 06:20:02 +00:00
renovate[bot]
316610f9d0 chore(deps): lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-29 02:54:55 +02:00
Philip Molares
eca22f5623 refactor(test): fix linting errors
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2022-08-29 02:47:12 +02:00
renovate[bot]
c26bdf51d0 chore(deps): update dependency eslint-plugin-jest to v27
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-29 02:47:12 +02:00
renovate[bot]
ba04c20f6b fix(deps): update dependency @hedgedoc/realtime to v0.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-29 01:53:38 +02:00
renovate[bot]
31ef3e6cb1 chore(deps): update dependency jest to v29
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 19:58:28 +02:00
renovate[bot]
99d9625f9a chore(deps): update dependency eslint-plugin-jest to v26.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 19:57:49 +02:00
renovate[bot]
b57da1e6ea fix(deps): update dependency pg to v8.8.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 19:57:35 +02:00
renovate[bot]
00a454f37b fix(deps): update dependency @mrdrogdrog/optional to v0.2.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:20:47 +02:00
renovate[bot]
3553ece212 chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:03:54 +02:00
renovate[bot]
2101a53b1c chore(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2022-08-28 13:03:23 +02:00