piwik/piwik — pull request #6342 by diosmosis (2014-09-30 03:31:08+00:00)
Title: Remove and deprecate Piwik::setUserHasSuperUserAccess() and switch to using Access::doAsSuperUser()

As title.

doAsSuperUser() will rescind super user access if an exception is thrown by the callback passed to it and after the callback finishes, which means super user access will not accidentally be used.

@mattab Please review & merge if the build passes.