style: fix linting issues met Prettier
This commit is contained in:
parent
1aa823bf5c
commit
d51ebae322
2 changed files with 6 additions and 8 deletions
|
@ -12,13 +12,11 @@ import { fetchGroup } from '../../../services/groups.js';
|
||||||
import { requireFields } from '../../../controllers/error-helper.js';
|
import { requireFields } from '../../../controllers/error-helper.js';
|
||||||
import { SubmissionDTO } from '@dwengo-1/common/interfaces/submission';
|
import { SubmissionDTO } from '@dwengo-1/common/interfaces/submission';
|
||||||
|
|
||||||
export const onlyAllowSubmitter = authorize(
|
export const onlyAllowSubmitter = authorize((auth: AuthenticationInfo, req: AuthenticatedRequest) => {
|
||||||
(auth: AuthenticationInfo, req: AuthenticatedRequest) => {
|
|
||||||
const submittedFor = (req.body as SubmissionDTO).submitter.username;
|
const submittedFor = (req.body as SubmissionDTO).submitter.username;
|
||||||
const submittedBy = auth.username;
|
const submittedBy = auth.username;
|
||||||
return submittedFor === submittedBy;
|
return submittedFor === submittedBy;
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
export const onlyAllowIfHasAccessToSubmission = authorize(async (auth: AuthenticationInfo, req: AuthenticatedRequest) => {
|
export const onlyAllowIfHasAccessToSubmission = authorize(async (auth: AuthenticationInfo, req: AuthenticatedRequest) => {
|
||||||
const { hruid: lohruid, id: submissionNumber } = req.params;
|
const { hruid: lohruid, id: submissionNumber } = req.params;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from "vue-i18n";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue