Skip to content

Commit 0d46978

Browse files
committed
mod access right for the document also
1 parent af0a22f commit 0d46978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/components/V1/Generic/InterventionProcedure.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const InterventionProcedure = () => {
5757
const { data: documents = [], isFetching } = useGetDocumentsQuery({ studyprogrammeKey: programmeKey })
5858
const document = (documents.length > 0 || !isFetching) ? documents.find((doc: DocumentType) => doc.id.toString() === id) : null
5959

60-
const hasWriteRights = (user.access[programmeKey]?.write && user.specialGroup?.evaluationFaculty) || isAdmin(user)
60+
const hasWriteRights = user.access[programmeKey]?.write || isAdmin(user)
6161

6262
// For this function the year variable is not needed cuz
6363
// intervention procedure is independent from years.

0 commit comments

Comments
 (0)