Commit graph

6248 commits

Author SHA1 Message Date
Philip Molares
7404ebf5ea
feat: create permission decorator
This gathers the permission a user needs to hold to access a resource for the PermissionsGuard.

See https://docs.nestjs.com/guards#setting-roles-per-handler

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-21 17:17:33 +01:00
Philip Molares
4a7ccc8178
feat: create permission enum
This enum makes it possible which permissions a user needs to hold to access a specific resource

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-21 17:16:12 +01:00
Philip Molares
82643cd790
chore: extract getNote code from GetNotePipe.transform
This was done so the same code could be used in the PermissionsGuard

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-21 17:12:35 +01:00
Philip Molares
7927ac2217
chore: move get-note-pipe to api utils
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-21 17:05:27 +01:00
Yannick Bungers
9093e5fabc
Add missing null in type in permissions service
The parameters of the permission checking methods were missing a null value for not set user. This is the case if user is not logged in and operating as guest.

Signed-off-by: Yannick Bungers <git@innay.de>
2021-11-29 22:42:31 +01:00
Renovate Bot
fdddedf6b3
fix(deps): update dependency passport to v0.5.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 23:20:49 +00:00
Renovate Bot
02eef978b3
chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-23 07:50:47 +00:00
Renovate Bot
c49fb069ab
fix(deps): update dependency class-transformer to v0.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-22 19:53:40 +00:00
Renovate Bot
7ff54b1c3f
chore(deps): update dependency tsconfig-paths to v3.12.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 23:20:22 +00:00
Philip Molares
e9fab8c568
test: fix test name in alias.e2e-spec.ts
This seems to be a copy/paste bug

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-21 18:06:41 +01:00
renovate[bot]
fdb4ac3af3
fix(deps): update dependency minio to v7.0.20 (#1842)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 01:15:29 +00:00
Renovate Bot
453431282b
chore(deps): update dependency typescript to v4.5.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 15:08:40 +00:00
renovate[bot]
33332808c4
fix(deps): update dependency class-validator to v0.13.2 (#1839)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 15:05:49 +00:00
renovate[bot]
3958a4ac05
fix(deps): update dependency typeorm to v0.2.41 (#1836)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 12:20:22 +00:00
renovate[bot]
9eeb6ab152
chore(deps): update nestjs packages (#1835)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 10:40:44 +00:00
renovate[bot]
bf1567614e
chore(deps): update dependency source-map-support to v0.5.21 (#1834)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 08:38:19 +00:00
renovate[bot]
b9feed1811
chore(deps): update dependency @types/node to v16.11.9 (#1833)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 04:10:49 +00:00
renovate[bot]
b59340831d
chore(deps): update dependency @types/jest to v27.0.3 (#1832)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 02:13:10 +00:00
Renovate Bot
321d545907
chore(deps): update linters to v5.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 08:34:13 +00:00
David Mehren
bc2bef913f
ci(renovate): separate major updates
Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-16 18:01:48 +01:00
David Mehren
803685fd3f
ci(renovate): run only on weekends
Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-16 17:59:02 +01:00
David Mehren
8b4e4b86f2
ci(renovate): remove explicit dependencyDashboard
The `config:base` preset now includes this option

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-16 17:55:15 +01:00
renovate[bot]
88fe0f9c0c
fix(deps): update dependency raw-body to v2.4.2 (#1828)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-17 05:38:10 +00:00
David Mehren
7ef380241d
fix(seed): fix create method usage
Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 21:49:31 +01:00
David Mehren
b9d3c95d2d
fix(note): fix type for owner param
To make the create method easier to use in conjunction
with the authentication framework, this commit changes the type of
the `owner` parameter from `User | undefined` to `User | null`.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 21:44:59 +01:00
David Mehren
c675dd0e9e
fix(alias): remove default for primary
To make the create method more consistent with the
guidelines,
this commit removes the default value from the `primary` parameter.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 21:22:22 +01:00
David Mehren
04412826a7
fix(media-upload): remove backendData parameter
`Create` methods should only contain optional properties

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 21:14:03 +01:00
David Mehren
3fe1bb0edf
fix(identity): remove default for syncSource
To make the create method more consistent with the
guidelines,
this commit removes the default value from the `syncSource` parameter.

An Identity will be created as sync source,
when the associated account is created using an external provider.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 20:56:17 +01:00
David Mehren
178513a3a0
fix(group): add special flag to create method
To make the create method more consistent with the
guidelines, this commit adds the `special` flag to
the parameters.
As this function will only be used to create the two hard-coded groups
and to handle API requests at one or two places, adding the parameter
should not be too problematic.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-11-14 20:53:45 +01:00
Philip Molares
d0239f3a24
docs: add dev documentation for create methods
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-11 22:07:00 +01:00
Philip Molares
62037acc97
fix(media-upload): rework create and media services saveFile
This was done to make the create method more concise.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-11 22:06:30 +01:00
Philip Molares
ed5367d456
test(private-api): fix aliases expect
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-11-08 21:40:36 +01:00
Renovate Bot
994d22eb35 Update dependency katex to v0.14.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-31 00:17:10 +02:00
Renovate Bot
4844ff4552 Update dependency katex to v0.13.23
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-30 14:17:50 +02:00
renovate[bot]
8fc8343018
Update dependency @types/jest to v27 (#1605)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-30 10:34:14 +02:00
renovate[bot]
279b0a3845
Update dependency katex to v0.13.22 (#1604)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-30 10:33:28 +02:00
Tilman Vatteroth
c7c7c9ac74 Change scss import of reveal to css
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-29 23:03:01 +02:00
Renovate Bot
9c0e4c2f7e Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 22:39:57 +02:00
Renovate Bot
060b1822d2 Update dependency sass to v1.43.4
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 22:19:10 +02:00
Renovate Bot
0c0c7fd26f Update dependency @types/sass to v1.43.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 22:02:17 +02:00
Renovate Bot
5800c114a3 Update dependency bootstrap to v4.6.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:34:11 +02:00
Renovate Bot
35fdd7655a Update dependency vega-embed to v6.20.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:17:07 +02:00
Renovate Bot
f91445a8e1 Update dependency react-i18next to v11.13.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:09:01 +02:00
Renovate Bot
0a2cdb6d56 Update dependency flowchart.js to v1.17.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:05:31 +02:00
Renovate Bot
32b167b072 Update dependency katex to v0.13.20
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:01:40 +02:00
Renovate Bot
a601afe618 Update dependency redux to v4.1.2
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-29 21:01:21 +02:00
Renovate Bot
78112052c4 Update vega
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 21:51:37 +02:00
Tilman Vatteroth
68de268515 Fix type error in error-boundary.tsx
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2021-10-26 14:49:35 +02:00
Renovate Bot
18026fdd94 Update definitely typed
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 14:49:35 +02:00
Renovate Bot
3803d26c89 Lock file maintenance
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 14:02:07 +02:00