Editing country amanger is now only available for admins/dev

This commit is contained in:
Joao Ramos
2024-01-13 23:58:03 +00:00
parent ad1dbaef27
commit be03760cb9

View File

@@ -292,7 +292,8 @@ const UserCard = ({user, loggedInUser, onClose, onViewStudents, onViewTeachers,
color: state.isFocused ? "black" : styles.color, color: state.isFocused ? "black" : styles.color,
}), }),
}} }}
isDisabled={disabled} // editing country manager should only be available for dev/admin
isDisabled={!['developer', 'admin'].includes(loggedInUser.type)}
/> />
)} )}
</div> </div>