-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limited permissions for custom content entities, no bundle perms #3498
Comments
@betz Any link to the docs or a code snippet we can use to implement |
well, i just created a custom content entity called 'Booking' console.
Nothing about a bundle, like node has.
|
As far as I see node module provides this functionality - to have specific permissions per content type. Node module also handles it a custom way. I'm not sure we want to have such complex case in the content entity generation command |
I agree with @LOBsTerr closing this issue. feel free to request to reopen if you have a strong use case. |
I'm trying to get Core bundle permissionsmodules/taxonomy/src/Entity/Term.php modules/node/src/Entity/Node.php modules/media/src/Entity/Media.php Contrib bundle permissionsNot sure how to find those apart from google which did not help. Unfortunately https://www.drupal.org/project/examples has So please reopen :-) |
We need to copy ie core/modules/media/src/MediaAccessControlHandler.php
Guess I missed some steps |
@enzolutions ^^ |
|
Quite some work :-p |
I have now a WIP PR #4138 to indicate I'm working on it and get test results (if any). |
Guess it was a hickup as my 3rd commit triggered the PR |
Let us know when is ready to test, we would like to include in Sep release 1.9.3 |
I'll do my best. 3 tasks to check in #4138 :-) |
@enzolutions please review my PR #4138 :) |
Thanks, @clemens-tolboom we will check in a week-ish |
Issue title
[standard] Limited permissions for custom content entities
Problem/Motivation
When creating a custom content entity, the permission are limited to the whole entity.
It would be nice if we could have a permission that limits on bundle.
Like 'Create new bundlexyz entity'
The text was updated successfully, but these errors were encountered: