Hello Peter,

I found PBT via the Acquia article and really like the simplicity of the approach. I'm currently testing and plan to switch from another module to PBT in a D8 production site. Before I will do that, I would like to know if you have plans to expand the concept of PBT to other entities like files for example? For me that's the missing piece in many solutions out there. But I think it would be very valid for many (custom) entities.

My example is Media. I'm using Media Entity and so far there is no chance to secure files on a per role level. Being a fieldable entity it would be easy to add a term reference field to lock files down. On top, using your Views filter, one could easily create filter down entity reference fields based on certain criteria.

Thank you very much for reading and maybe considering.

Mike

Comments

Anonymous’s picture

mikewink created an issue. See original summary.

Peter Majmesku’s picture

Hi Mike,

I'm glad that you like my approach and that you found my project via the Acqua article. It's a good idea to secure also files and other entities than nodes with PBT. To be honest, I don't have such a plan - yet. My plan is currently to implement automated tests into PBT, to have a solid base for futher development with less regression.

I will not close your issue to have your good idea in mind. I might extend the functionality after the tests. If you consider PBT as a base for the needed functionality in your case, I'm offering you to support you here with the PBT project.

Peter

Anonymous’s picture

Hello Peter,

thank you for your reply and offer!

It's great to read that tests and good test coverage are the next step, as I think that they will even more give users a good feeling about the module.

Maybe we can keep this issue open to collect information what it would take to expand the functionality to other entities? I'm certain most of the ground work (API) are already there, based on the core Entity API and the Entity API module and it's extended functionality.

Mike

ron.du’s picture

I have the same feature request for this awesome module . Media entity and paragraphs are commonly used in drupal 8

ron.du’s picture

https://www.drupal.org/project/permissions_by_entity

This module should solve this issue. I believe this module still in early stage initiated by @Rackberg

Peter Majmesku’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2906431: Integrate Permissions by Entity

This issue is a duplicate of https://www.drupal.org/node/2906431. Therefor I am closing this issue.

arnoldbird’s picture

I don't know if this should be closed. It's not clear to me if PbT can work with entities in general. Would this be something to mention on the project page? Thanks

Peter Majmesku’s picture

You could try the Permissions by Entity submodule. Here is a tutorial: https://youtu.be/S6Bz-foX8jE.