Skip to content

Commit 01165b7

Browse files
authored
wrong profile checked for condition for changing admin user (#1079)
1 parent 2380be5 commit 01165b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/users/ManageUsers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export const ManageUsers = (): JSX.Element => {
157157
setAdmin(profile.email);
158158
}
159159
}}
160-
disabled={profile.email === currentUser.email || currentUser.read_only_user}
160+
disabled={profile.email === currentUser.email || profile.read_only_user}
161161
/>
162162
</TableCell>
163163
<TableCell align="left">

0 commit comments

Comments
 (0)