Mercurial > hg > isophonics-drupal-site
comparison core/modules/taxonomy/src/TermAccessControlHandler.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
36 | 36 |
37 /** | 37 /** |
38 * {@inheritdoc} | 38 * {@inheritdoc} |
39 */ | 39 */ |
40 protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) { | 40 protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) { |
41 return AccessResult::allowedIfHasPermission($account, 'administer taxonomy'); | 41 return AccessResult::allowedIfHasPermissions($account, ["create terms in $entity_bundle", 'administer taxonomy'], 'OR'); |
42 } | 42 } |
43 | 43 |
44 } | 44 } |