goldsky / GridClassKey

A custom class key for MODX Revolution's Manager to hide child resources inside container's grid.
8 stars 7 forks source link

Unable to Add Document without resource_tree permission #130

Open GarretOverstreet opened 9 years ago

GarretOverstreet commented 9 years ago

The tree is hidden for some users, though I am unable to use the "Add New Resource" button on GCK containers without having the resource_tree permission selected.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10014923-unable-to-add-document-without-resource_tree-permission?utm_campaign=plugin&utm_content=tracker%2F570466&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F570466&utm_medium=issues&utm_source=github).
goldsky commented 9 years ago

GridClassKey doesn't use tree, maybe you're confusing this with Collections? The "Add New Resource" button requires "new_document" permission to the usergroup.

GarretOverstreet commented 9 years ago

Definitely not Collections, I'm a big fan of GCK and use it for several sites.

"new_document" is applied to the user group. The only change I make in my ACL Policy is "resource_tree" (as to hide the tree completely) and it seems to toggle off and on whether the "Add" button works.

I tested it on a clean install, along with two other sites, and receive the same results. Unselecting the "resource_tree" permission, oddly enough, makes the "add new document" button go nowhere. Give it a test on a sub-admin account (I'm on 2.3.3 just for a heads up.)

goldsky commented 9 years ago

Hmm... ok, I'll investigate this. Thanks for reporting.

goldsky commented 8 years ago

Have you checked this? https://rtfm.modx.com/extras/revo/gridclasskey#GridClassKey-Permissions

neehad commented 6 years ago

Hi goldsky, is there any trick to avoid this issue?