mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 00:31:26 +00:00
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:
parent
fad5e1e22e
commit
c20e20b30a
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue