Skip to content

Commit

Permalink
fix: don't show terms and conditions modal to rsd admins anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ewan-escience committed Apr 3, 2024
1 parent e51e872 commit 64cb3b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/components/user/settings/UserAgreementModal.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all) (dv4all)
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2023 - 2024 Netherlands eScience Center
// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) <christian.meessen@gfz-potsdam.de>
// SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
// SPDX-FileCopyrightText: 2023 Netherlands eScience Center
// SPDX-FileCopyrightText: 2024 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
//
// SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -66,7 +67,7 @@ export default function UserAgrementModal() {
*/
useEffect(() => {
let abort = false
if (loading === false &&
if (loading === false && user?.role !== 'rsd_admin' &&
(agree_terms === false || notice_privacy_statement === false)
) {
if (abort===false) setOpen(true)
Expand Down

0 comments on commit 64cb3b9

Please sign in to comment.