Move all files to old/drupal/

This commit is contained in:
Oliver Davies 2025-10-02 07:57:25 +01:00
parent 8203e983d5
commit 7d76bf2968
468 changed files with 0 additions and 0 deletions

View file

@ -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'][] = [
[