modxcms/evolution

MODxRE2_DropdownMenu not working

pmfx opened this issue · 15 comments

pmfx commented

MODxRE2_DropdownMenu is amazing but Manager main frame is not working when user role don't have "Run module" permission.

This is working for me, any other settings that might be different between roles?

pmfx commented

Try to disable all Elements and "Use the file manager (full root access) " permissions too.

Role screenshot:

screenshot_1

Bug:

screenshot_2

OK, I was able to replicate the problem, but I think the problem is with "Edit Plugins".
Leave everything like you have it, but enable the "Edit Plugins" to see if the same thing happens.

pmfx commented

Yup. With "edit plugin" permission it works. This is odd behavior.

In my instance, I am using a plugin (EvoDashboard) that personalizes the welcome page.
If I disable this, all works as intended.
Are you using any similar plugins as well?

pmfx commented

No. It is a clean Evo install with sample site.

screenshot_1

Tomorrow, if I get the chance, I will create a fresh install and see if it is still does this.
Either way its strange and shouldn't be happening, as I dont let other users edit plugins.

I just created a clean install, and now it is functioning correctly.
Maybe you could do the same to see what happens?
Im going to keep messing with it to see what is triggering this error.

@pmfx @Dmi3yy
Experimenting with the settings, I have found that enabling any of the four Edit functions makes it work again, but I cant find what is causing it to break.

modx cms manager

It seems to me this is related to "elementsInTree"-plugin. If user has no permissions to any type of elements, it leaves a <div> open which causes the HTML-code to break and the dashboard to be not displayed.

I guess this should be the fix.

Thanks @Deesen
Yes this seems to fix it.

pmfx commented

Thanks Deesen. Thats working now but there is new JS error - unable to open images/file browser.

screenshot_1

Console error:

screenshot_2

pmfx commented

It occurs when user role have no elements/modules permissions even if ElementsInTree plugin is disabled.

Yes this is related to #1342 (comment)