-
Notifications
You must be signed in to change notification settings - Fork 8
Protect #139
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
base: 8.x-1.x
Are you sure you want to change the base?
Protect #139
Conversation
…cking just to the one used for access control.
…ndle an entity is part of for access control.
Per suggestion by @biz123
| * TRUE if content is assigned to this entity. | ||
| * FALSE if content is not assigned to this entity. | ||
| */ | ||
| private function hasContent(EntityInterface $entity) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a call to a method here that will check to see if the term has children or not.
TODO: figure out how to abstract this so that this class doesn't have any explicit taxonomy or term references. Adding a method to the Drupal\workbench_access\Plugin\AccessControlHierarchy class to see if this scheme has children might be the way to do it.
…ch access configuration, which knows where to look.
|
Here's a patch that resolves everything flagged by the client's coding style checks. (gzipped because GitHub doesn't support an upload of |
|
@agentrickard I created #143 for some additional changes flagged by PHPMD. |
The new branch of @jasonpartyka's workbench access protect addition.