Editing country amanger is now only available for admins/dev
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user