In our case, we did not want editors to see, throughout non "my" sections of workbench dashboard, content types that did not belong to them.

Meaning if the did not have the "edit any article content" permission or "edit own article content" permission, then they will not see any article content types in their workbench results.

This filter does not require the Workbench Moderation: Node relationship. But if you have it enabled it will use it (with no option) by default. I do not see an issue with this since we are dealing with content types.

Below is the patch. Feedback is welcomed.

Comments

elvis2’s picture

Title: Filter by content types the user can edit » Filter the content types the user can edit
Status: Active » Needs review
StatusFileSize
new2.24 KB

Status: Needs review » Needs work

The last submitted patch, 1968354-1-filter-by-content-types-the-user-can-edit.patch, failed testing.

elvis2’s picture

Status: Needs work » Needs review

Re-rolled. Forgot to include the new handler within the .info file.

elvis2’s picture

Status: Needs review » Needs work

The last submitted patch, 1968354-4-filter-by-content-types-the-user-can-edit.patch, failed testing.

elvis2’s picture

Status: Needs work » Needs review
StatusFileSize
new2.85 KB

Thanks to dags who helped me understand my errors in the first two patches.

Same code just a new method to roll the patch.

pmichelazzo’s picture

@elvis2,

I install the patch and now I can see a new option Workbench Moderation: Filter Content Types inside of my Workbench Moderation area of filter criteria but, I don't know why I just receive the info: (Node) Broken/missing handler (= )

How can I use it? I have the same situation but I don't know which kind of parameter I need to filter off.

Thank you

elvis2’s picture

@pmichelazzo, can you provide a screenshot?