Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dev): release 1.2.0 #216

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.1.0"
".": "1.2.0"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [1.2.0](https://github.com/pressbooks/pressbooks-multi-institution/compare/1.1.0...1.2.0) (2024-12-18)


### Features

* hook to fetch institution id for a given user ([021e8ee](https://github.com/pressbooks/pressbooks-multi-institution/commit/021e8ee81aa23e61a50f1f317b520d5ddef35a03))


### Bug Fixes

* only hide edit link on root site pages ([#220](https://github.com/pressbooks/pressbooks-multi-institution/issues/220)) ([4677227](https://github.com/pressbooks/pressbooks-multi-institution/commit/46772276398a92709f2a6e6c2ed9d498b37d50ae))
* update permissions for institutional managers ([#219](https://github.com/pressbooks/pressbooks-multi-institution/issues/219)) ([7159fd6](https://github.com/pressbooks/pressbooks-multi-institution/commit/7159fd60013fefb077a427a7c3a8d3550be658a2))

## [1.1.0](https://github.com/pressbooks/pressbooks-multi-institution/compare/1.0.5...1.1.0) (2024-11-28)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Requires at least:** 6.4.3 \
**Tested up to:** 6.4.3 \
<!-- x-release-please-start-version -->
**Stable tag:** 1.1.0 \
**Stable tag:** 1.2.0 \
<!-- x-release-please-end -->
**License:** GPLv3 or later \
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html
Expand Down
2 changes: 1 addition & 1 deletion pressbooks-multi-institution.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Requires Plugins: pressbooks
* Description: Tools for managing Pressbooks networks shared by multiple institutions
* x-release-please-start-version
* Version: 1.1.0
* Version: 1.2.0
* x-release-please-end
* Author: Pressbooks (Book Oven Inc.)
* Author URI: https://pressbooks.org
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
Loading