From 0d7c452fe6bbcb16a0c236d04a63f46910f5f3a4 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 24 Apr 2018 09:50:20 -0700 Subject: [PATCH] Fixed an error --- CHANGELOG-v3.md | 1 + src/templates/_layouts/cp.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-v3.md b/CHANGELOG-v3.md index b4d3da67787..f4582471251 100644 --- a/CHANGELOG-v3.md +++ b/CHANGELOG-v3.md @@ -24,6 +24,7 @@ - Fixed a bug where empty Plain Text fields were getting empty string values rather than `null`. - Fixed a bug where elements within relational fields could have two thumbnails. ([#2785](https://github.com/craftcms/cms/issues/2785)) - Fixed a bug where it was not possible to pass a `--table-prefix` argument to the `setup/db-creds` command. ([#2791](https://github.com/craftcms/cms/pull/2791)) +- Fixed an error that occurred for users without permission to perform updates, if available update info wasn’t cached. ## 3.0.3.1 - 2018-04-18 diff --git a/src/templates/_layouts/cp.html b/src/templates/_layouts/cp.html index aee11c7a293..5755554a48a 100644 --- a/src/templates/_layouts/cp.html +++ b/src/templates/_layouts/cp.html @@ -279,7 +279,7 @@

{{ title }}

{% endblock %} -{% if not craft.app.updates.getIsUpdateInfoCached() %} +{% if currentUser.can('performUpdates') and not craft.app.updates.getIsUpdateInfoCached() %} {% js %} Craft.cp.checkForUpdates(); {% endjs %}