From aeddfbd3390f8fc38b4e80d145e80d357d2f99fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20G=C3=BCnther?=
Date: Fri, 2 Aug 2024 00:40:19 +0200
Subject: [PATCH] Bugfixes
---
includes/roles.php | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/includes/roles.php b/includes/roles.php
index abcb71b..90ff3ee 100644
--- a/includes/roles.php
+++ b/includes/roles.php
@@ -32,9 +32,7 @@
array('read' => true)
);
} else {
- foreach ( solea_get_capabilities_user() as $capability => $value ) {
- $role->add_cap( 'read' );
- }
+ $role->add_cap( 'read' );
}
}