VisualComposer / builder

Visual Composer Website Builder is a drag and drop editor for WordPress.
https://visualcomposer.com
GNU General Public License v3.0
85 stars 53 forks source link

An issue with Role Manager and Right Click Menu functionality #1396

Closed FilipsMasolovs closed 3 years ago

FilipsMasolovs commented 3 years ago

There is an issue in the latest 37.0-beta-2 that comes from two latest functionalities Role Manager and Right Click Menu.

Steps to replicate:

  1. Disable adding elements for any user type.
  2. Log in with that specific user type.
  3. Try to edit a page with a decent layout.
  4. Now click on any element. NOTE: Nothing will happen, since you don't have element options the right click menu will not appear.

The issue is that now you had no feedback, but at the same time you can't scroll and you don't know what is going on!

Possible fix: Add: roleManager.can('editor_content_element_add', roleManager.defaultTrue()) to the the rightClickMenu.js handleRightClick function.

pavelthq commented 3 years ago

Thanks for submitting an issue, you're welcome to send PR as well :)

veidenbaums commented 3 years ago

Solved #1417