Skip to content

Commit

Permalink
style: code lint (#221)
Browse files Browse the repository at this point in the history
* lint styles

* chore(l10n): update pot file

---------

Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
arzola and actions-user authored Dec 18, 2024
1 parent 4677227 commit e5872a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions languages/pressbooks-multi-institution.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down
7 changes: 4 additions & 3 deletions src/Services/PermissionsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
}

Expand Down

0 comments on commit e5872a3

Please sign in to comment.