Skip to content

Commit

Permalink
chore(migration): allow other role to perform migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 2, 2024
1 parent edde9d6 commit 0a45adf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/migration/useMigration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const useMigration = () => {
}

const isAdmin = settings.cong_role.some(
(role) => role === 'admin' || role === 'lmmo' || role === 'secretary'
(role) =>
role === 'admin' ||
role === 'lmmo' ||
role === 'secretary' ||
role === 'coordinator'
);

if (!isAdmin) {
Expand Down

0 comments on commit 0a45adf

Please sign in to comment.