Skip to content

Conversation

@agentrickard
Copy link
Owner

The new branch of @jasonpartyka's workbench access protect addition.

agentrickard and others added 30 commits April 10, 2019 13:01
…cking just to the one used for access control.
…ndle an entity is part of for access control.
* TRUE if content is assigned to this entity.
* FALSE if content is not assigned to this entity.
*/
private function hasContent(EntityInterface $entity) {

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.

@byrond
Copy link

byrond commented Mar 13, 2020

Here's a patch that resolves everything flagged by the client's coding style checks. (gzipped because GitHub doesn't support an upload of .patch files).

workbench_access_protect-code-style.patch.gz

@byrond
Copy link

byrond commented Apr 8, 2020

@agentrickard I created #143 for some additional changes flagged by PHPMD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants