Just as the title says. Right now the permissions are too open. We need to limit user roles to specific bundles for this module. This should be a serious help to security issues with entities that support bundles.

Comments

saltednut’s picture

StatusFileSize
new6.72 KB

Here's an initial patch. This could perhaps use some refactoring to make the code cleaner but it works from my tests.

saltednut’s picture

Assigned: Unassigned » dsdeiz
Status: Active » Needs review
saltednut’s picture

StatusFileSize
new6.68 KB

Had some issues in #1 with Updating and Deleting entities that do not use bundles.

saltednut’s picture

StatusFileSize
new7.79 KB

Should work with the latest branch and some very minor cleanup.

saltednut’s picture

Assigned: dsdeiz » Unassigned
dsdeiz’s picture

StatusFileSize
new7.52 KB

This works on my end as well. Just some minor refactoring on generating the permissions.

saltednut’s picture

Status: Needs review » Fixed

marking as fixed - nice cleanup on the permissions! dsdeiz++ http://drupalcode.org/project/entity_js.git/commit/7e73f19

saltednut’s picture

Status: Fixed » Closed (fixed)
saltednut’s picture

Issue summary: View changes

Updated issue summary.