[#1629] Disapproved Users become Pending Approval

14 years 1 month ago #128833 by vcardillo
I've found a bug where it seems impossible to keep a user a disapproved. I have CB set that the admin must approve all new accounts. So a user registers, and in the backend, the "Approved" column is marked as "pending approval". If I go in and edit their account, and set the "Approve User" dropdown to "No", the user is still marked as pending approval.

Clicking on the icon in the Approved column can also cycle the user through approved and disapproved (rejected). This cycles between the green checkmark, and the red x. If I click the icon, I can set the user as disapproved. However if I go in and edit that user's profile, and save, leaving the Approve User dropdown as-is at "No", after saving the user they are back to being "pending approval" again.

This would seem to be a bug to me, and seems to be impossible to set the user to Disapproved when you're editing their profile. It also seems that the "Approve User" dropdown needs a third option to reflect the "pending approval" state in the database. It would appear that pending approval and disapproved are being mixed up somehow.

- vince

Post edited by: krileon, at: 2010/04/01 20:31

Please Log in to join the conversation.

14 years 1 month ago #128904 by krileon
Replied by krileon on topic Re:Disapproved Users become Pending Approval
This is working as intended; approval status only has 2 states: Pending and Approved. If you want to reject a user simply Block them (set them as Disabled).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 1 month ago #128923 by vcardillo
Replied by vcardillo on topic Re:Disapproved Users become Pending Approval
There are three states in the database of the approved column:

int 1: Approved
int 2: Denied
int 0: Pending approval

If you edit someone's profile and set the "Approve User" dropdown to "No", then the database state goes back to 0, which is back to "pending approval".

Seems like a bug to me. Editing a profile should not return them to "Pending Approval". This implies that you have never dealt with this user account. When in reality, I have.

Please Log in to join the conversation.

14 years 1 month ago #128954 by krileon
Replied by krileon on topic Re:Disapproved Users become Pending Approval

There are three states in the database of the approved column:

int 1: Approved
int 2: Denied
int 0: Pending approval

If you edit someone's profile and set the "Approve User" dropdown to "No", then the database state goes back to 0, which is back to "pending approval".

Correct.

Seems like a bug to me. Editing a profile should not return them to "Pending Approval". This implies that you have never dealt with this user account. When in reality, I have.

Was indeed able to duplicate your issue and can confirm is a bug, will require further investigation; sorry for the inconvenience.

For the time being I recommend simply not editing rejected users; use case of editing rejected users was not considered as generally once a user is rejected there is no need to edit them further.

#1629

Post edited by: krileon, at: 2010/04/01 20:32


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 1 month ago #128964 by vcardillo
Replied by vcardillo on topic Re:Disapproved Users become Pending Approval
Thanks for confirming this as a bug. Here's why I think it's somewhat of a priority though:

The only way to mark a user as rejected (currently, with this bug) is to cycle through the icon in the Approved column of the list view (as editing them only leaves them back at Pending). However, the order of cycling is Pending->Approved->Denied. Which means if you're attempting to deny someone, they're going to get their Account Approved welcome email as you're cycling on your way to the Denied state.

Just pointing that out. Again, thanks for confirming.

Please Log in to join the conversation.

14 years 1 week ago #130821 by KatoKalin
Jumping into that thread as my other thread got closed:
www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,112/id,130768/#130768

From what krileon has posted, the confirmed bug is that a once rejected user will go back to pending state when he gets edited.

However this is not the bug I have reported. I reported the bad workflow architecture, which requires a user to be approved before he can be disapprove. Exactly what vcardillo wrote below.

So I hope these 2 different issues will get looked after seperately.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.259 seconds

Facebook Twitter LinkedIn