fix: error import
This commit is contained in:
parent
6edb5f144d
commit
6c1aeb2331
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
import { languageMap } from 'dwengo-1-common/util/language';
|
||||
import { LearningObjectIdentifier } from '../../../entities/content/learning-object-identifier';
|
||||
import { fetchSubmission } from '../../../services/submissions';
|
||||
import { AuthenticatedRequest } from '../authenticated-request';
|
||||
|
@ -6,6 +5,7 @@ import { AuthenticationInfo } from '../authentication-info';
|
|||
import { authorize } from './auth-checks';
|
||||
import { FALLBACK_LANG } from '../../../config';
|
||||
import { mapToUsername } from '../../../interfaces/user';
|
||||
import { languageMap } from "@dwengo-1/common/util/language";
|
||||
|
||||
export const onlyAllowSubmitter = authorize(
|
||||
(auth: AuthenticationInfo, req: AuthenticatedRequest) => (req.body as { submitter: string }).submitter === auth.username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue