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

Deprecate Piwik::setUserHasSuperUserAccess() and switch to using Access::doAsSuperUser() #6342

Merged
merged 4 commits into from Sep 30, 2014

Conversation

diosmosis
Copy link
Member

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.

mattab pushed a commit that referenced this pull request Sep 30, 2014
Remove and deprecate Piwik::setUserHasSuperUserAccess() and switch to using Access::doAsSuperUser()
@mattab mattab merged commit 3994f62 into master Sep 30, 2014
@mattab mattab added Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. labels Sep 30, 2014
@mattab
Copy link
Member

mattab commented Sep 30, 2014

Feedback

@diosmosis diosmosis deleted the set_superuser_access_refactor branch October 1, 2014 05:06
diosmosis pushed a commit that referenced this pull request Oct 2, 2014
…user that can execute a command can do more than a superuser already).
@mattab mattab changed the title Remove and deprecate Piwik::setUserHasSuperUserAccess() and switch to using Access::doAsSuperUser() Deprecate Piwik::setUserHasSuperUserAccess() and switch to using Access::doAsSuperUser() Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants