check if user can access updates

This commit is contained in:
Denis Duliçi 2021-01-18 01:16:26 +03:00
parent 9506fa8ad2
commit cad30bc7f3

View File

@ -52,7 +52,9 @@ class Header
}
}
$updates = count(Versions::getUpdates());
if ($user->can('read-install-updates')) {
$updates = count(Versions::getUpdates());
}
$this->loadSuggestions();
}