mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04: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
|
* @return if the user has the specified permission on the note
|
||||||
*/
|
*/
|
||||||
public async checkPermissionOnNote(
|
public async checkPermissionOnNote(
|
||||||
desiredPermission: Permission,
|
desiredPermission: Exclude<Permission, Permission.CREATE>,
|
||||||
user: User | null,
|
user: User | null,
|
||||||
note: Note,
|
note: Note,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue