solved Deleting extra profiles also deleted the master admin account...

Developer Networks
Developer Networks
@developer-networks
2 years ago
566 posts
Noticed a problem today setting up my Jamroom site. I logged in as the admin account which is the first account created and I created 3 additional profiles also owned by the admin account and I uploaded music to those profile accounts for testing.

I decided to delete one of those profiles however it also deleted and removed the entire admin account connected to the jamroom system and now rendering the system with out any admin account..

deleting the extra profiles removed the admin account and I cant log in with out completely starting over. The system should check if the profile that is being deleted has other profile accounts connected before its owner is removed... especially master admin accounts.
updated by @developer-networks: 03/19/23 10:11:48PM
paul
@paul
2 years ago
4,325 posts
Are you using the latest version of Jamroom? I recall that it was possible to delete the master admin account but that was fixed many versions ago.
Have just tried what you describe on one of my test sites and see no issue.
How did you delete the profile, via the profile page or the ACP profile datastore tool?
Or did you delete the admin user account via the ACP user datastore tool? But again, the latest Jamroom should not allow that to happen (I've just tried - it doesn't).
Let us know.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
Developer Networks
Developer Networks
@developer-networks
2 years ago
566 posts
Thanks Paul, my PHP Storm is showing I was using 6.5.13. When trying to re create the issue I clicked on the:
ACP wheel => Users => Profile Browser

Then on the list of profiles I clicked the delete button to the right and it completely removed the only master admin user account associated with the extra profile I was deleting.


To re create the problem..I have re installed Jamroom 6.5.13 and signed up with an admin account and created 2 extra profiles associated with the admin account.

I have added music to them and deleted one of these new extra profiles using the delete button located on the "profile browser" page and YES it did in fact remove the only admin user account on the system rendering the Jamroom system forever inoperable with no admin.

The other profiles were left active but the master admin user account was deleted from the system when removing one of the extra profiles.

My opinion is that this is a critical bug in that it does not function properly for Jamroom interoperability.

It should self-check so that "the only" in most cases... master admin user account can not be deleted or removed locking themselves out because of deleting an extra profile linked to the user.

The Jamroom admin should be asked if they want to remove user with the delete profile action.

Jamroom systems allow multiple profiles under users so naturally it should allow profiles to be deleted with or without removing the user.

Currently the Jamroom profile delete action was set up with a warning label which pops up saying to proceed with profile delete action your user account associated will be deleted....

which we found out can render all the other associated profiles and the entire Jamroom administration system dead and inactive if its deleting the only connected master admin account..

put checks and balances in place to make sure there is always a master admin account and

Replace the warning question with:

=> Do you wish to also delete the user account associated with this profile?

That I believe would be the correct right best way to do that.

Thanks


Merry Christmas 2 All You Guys!!!

Glad to help

updated by @developer-networks: 12/18/22 01:00:52AM
paul
@paul
2 years ago
4,325 posts
Yep - Am seeing this happen on my test site doing it your way.
Thanks for letting us know, we'll work out what's going on.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
2 years ago
4,325 posts
This has been fixed in the next release of the jrUser module. Thanks again for letting us know about it.


--
Paul Asher - JR Developer and System Import Specialist

Tags