Move all files to old/drupal/
This commit is contained in:
parent
8203e983d5
commit
7d76bf2968
468 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
diff --git a/plausible.module b/plausible.module
|
||||
index ce5a826..aa78dc5 100644
|
||||
--- a/plausible.module
|
||||
+++ b/plausible.module
|
||||
@@ -16,9 +16,14 @@ use Drupal\plausible\Component\Render\PlausibleJavaScriptSnippet;
|
||||
function plausible_page_attachments(array &$attachments) {
|
||||
$account = \Drupal::currentUser();
|
||||
|
||||
- if (! (_plausible_visibility_pages() && _plausible_visibility_roles($account))) {
|
||||
+ if (!_plausible_visibility_pages()) {
|
||||
return;
|
||||
}
|
||||
+
|
||||
+ if ($account->isAuthenticated()) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
$config = \Drupal::config('plausible.settings');
|
||||
$attachments['#attached']['html_head'][] = [
|
||||
[
|
||||
Loading…
Add table
Add a link
Reference in a new issue