refactor(server): controller cleanup (#11923)

chore(server): controller cleanup
This commit is contained in:
Jason Rasmussen 2024-08-20 08:50:14 -04:00 committed by GitHub
parent ef9a06be5c
commit 3be1aaaaa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 656 additions and 1186 deletions

View file

@ -20,7 +20,7 @@ export class TrashService {
async restoreAssets(auth: AuthDto, dto: BulkIdsDto): Promise<void> {
const { ids } = dto;
await requireAccess(this.access, { auth, permission: Permission.ASSET_RESTORE, ids });
await requireAccess(this.access, { auth, permission: Permission.ASSET_DELETE, ids });
await this.restoreAndSend(auth, ids);
}