Hi there. Appreciate the nice work you've done with this plugin. Great!
I guess I have discovered a bug. I tested it also with a fresh WP 5.4.1 installation with AAM 6.5.2 and Plus Package 5.4.2. I documented it with screenshots, too: https://www.dropbox.com/sh/49wd1ha6vb3x5hh/AAC34_Bv0A1pcmtLRrgcsRFLa?dl=0
In my setup there are two editors (A and B) and several authors. Both editors shall have access to all media (also from authors), but should be able to hide media from the other editor. To achieve this, I created two categories (with sub-categories): Category A and Category B.
Then I restricted the visibility of category A for editor B and of category B for editor A. I also restricted visibility of the media in category A for editor B and vice versa.
In result: Only editor A can assign media to category A (because editor B can't see category A), which enables him to hide media from editor B. And the same the other way around: Only editor B can assign media to category B (because editor A can't see category B), which enables him to hide media from editor A.
This setup is to not only to make sure, one editor can hide media from the other editor, but also to prevent that one editor accidentally assigns media wrong, which would make the media invisible for him and disable him to undo the mistake, too.
When all categories are created, everything works fine, as long as none of the editors does any change to any category (not only to the category only he can see) after the AAM settings are set. I (Admin) can always make changes (add, delete, edit) to any category without causing a malfunction. But if any of the 2 editors does any change to any category (add a new category, add a new subcategory to the category only he can see, edit a category or a subcategory, delete a category or subcategory), the visibility and hierarchy is messed up => see 1.0 - 1.1.2 and 2.1 - 2.2.3 in the Screenshots. It is not only messed up for the other editor, but also for me (Admin), until I (Admin) add a new category, which corrects everything again (3.0 - 3.3.).
It would be great if this strange behavior could be prevented, to be able to give editors the possibility to edit or add categories without causing the described problems.
Thanks in advance.
Best regards, Valex