Absolutely, please use the below query.Still loving that my users can activate or deactivate their account, but now I'm facing another problem. Suppose I want to Ban their profile for some reason, they can always simply select Enable and reactivate their account.
Is there a way to allow them to reactivate their account, only if the reason = Account manually disabled?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Of course, the query only addresses unsetting of the ban and not setting of the ban. The below would address setting of the ban.userbk wrote: Thanks K, but the problem is that even if a moderator disables the account for say "Cause I feel like it" reason and then the user disables his own account, the reason turns into "Account manually disabled" and then he can simply update the account again with enabled selected and it unbans it :dry:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.