refactor: exclude create permission from note permission check

Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Yannick Bungers 2023-03-27 23:22:30 +02:00 committed by Yannick Bungers
parent fad5e1e22e
commit c20e20b30a

View file

@ -50,7 +50,7 @@ export class PermissionsService {
* @return if the user has the specified permission on the note
*/
public async checkPermissionOnNote(
desiredPermission: Permission,
desiredPermission: Exclude<Permission, Permission.CREATE>,
user: User | null,
note: Note,
): Promise<boolean> {