diff --git a/languages/pressbooks-multi-institution.pot b/languages/pressbooks-multi-institution.pot index 7387fd22..5bfcb241 100644 --- a/languages/pressbooks-multi-institution.pot +++ b/languages/pressbooks-multi-institution.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-12-18T01:54:13+00:00\n" +"POT-Creation-Date: 2024-12-18T15:00:46+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: pressbooks-multi-institution\n" @@ -137,7 +137,7 @@ msgstr "" msgid "Administer Institution" msgstr "" -#: src/Services/PermissionsManager.php:104 +#: src/Services/PermissionsManager.php:105 msgid "Sorry, you are not allowed to access this page." msgstr "" diff --git a/src/Services/PermissionsManager.php b/src/Services/PermissionsManager.php index 6885ce6e..68399271 100644 --- a/src/Services/PermissionsManager.php +++ b/src/Services/PermissionsManager.php @@ -46,9 +46,10 @@ public function setupFilters(): void add_filter('edit_post_link', function ($link) use ($institution) { $currentBlogId = get_current_blog_id(); if ($currentBlogId === 1 && $institution !== 0) { - return ''; - } - else return $link; + return ''; + } else { + return $link; + } }); }