Skip to content

Commit

Permalink
Replace call to deprecated method Piwik\Piwik::doAsSuperUser (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored and tsteur committed Jan 13, 2020
1 parent c707c81 commit 33d982f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
namespace Piwik\Plugins\TagManager;

use Piwik\Access;
use Piwik\API\Request;
use Piwik\Common;
use Piwik\Container\StaticContainer;
Expand Down Expand Up @@ -242,7 +243,7 @@ public function regenerateReleasedContainers()
return;
}

Piwik::doAsSuperUser(function () {
Access::doAsSuperUser(function () {
// we need to run as super user because after a core update the user might not be an admin etc
// (and admin is needed for debug action)
$containerModel = StaticContainer::get('Piwik\Plugins\TagManager\Model\Container');
Expand Down

0 comments on commit 33d982f

Please sign in to comment.