Merge remote-tracking branch 'origin/develop' into feature/level-file-upload
This commit is contained in:
@@ -143,7 +143,11 @@ const UserCard = ({
|
||||
}, [users, referralAgent]);
|
||||
|
||||
const updateUser = () => {
|
||||
if ((user.type === "corporate" || user.type === "mastercorporate") && (!paymentValue || paymentValue < 0))
|
||||
if (
|
||||
(user.type === "corporate" || user.type === "mastercorporate") &&
|
||||
(!paymentValue || paymentValue < 0) &&
|
||||
["admin", "developer"].includes(loggedInUser.type)
|
||||
)
|
||||
return toast.error("Please set a price for the user's package before updating!");
|
||||
|
||||
if (!confirm(`Are you sure you want to update ${user.name}'s account?`)) return;
|
||||
|
||||
Reference in New Issue
Block a user