modmore / VersionX

Resource & Element Versioning Extra for MODX Revolution (supports 2.2 and up). Extends the core in a future-proof manner to keep copies of every change to resources, templates, template variables, chunks, snippets and plugins.
https://modmore.com/extras/versionx/
40 stars 20 forks source link

Error popup on save for non-admins #76

Closed sylbal closed 9 years ago

sylbal commented 9 years ago

Hi,

New to VersionX and rather new to ModX. Using version 2.3.3 and VersionX-2.1. I believe I found an issue when a user with the role "contributor" (default Modx ACL setup) is saving a resource. First save is ok, then every next save with changes, that create a version, a popup is raised, see attached. Save and version looks to be ok but this popup is a bit of anoying for users.

Not noticed when using the admin user and desapear when desinstalling VersionX.

Regards,

Edit: sorry unable to attach image!

The popup content is: Code 200: OK {"success":false,"message":"Autorisation refus\u00e9e !","total":0,"data":[],"object":[]}

jenswittmann commented 9 years ago

I've got the same error, anything i have to check in the Access Policies? Thanks :)

Mark-H commented 9 years ago

This is probably related to one of the dropdowns on the tabs. Perhaps your contributor role is missing classmap or listing users permission? Try to open those combos on Versions tab and see if they load properly or not.

sylbal commented 9 years ago

Thank's Mark and sorry to get back so late.

This was fixed adding the 'view user' role. See #80 that gives more info.

Regards,