Remove the check for a plugin update permission [MAILPOET-1130]

This commit is contained in:
stoletniy
2017-10-02 15:44:06 +03:00
parent 92dbf966a1
commit 23eb4633c4
3 changed files with 0 additions and 23 deletions

View File

@ -153,9 +153,6 @@ class Initializer {
// if current db version and plugin version differ
if(version_compare($current_db_version, Env::$version) !== 0) {
if(!$this->access_control->validatePermission(AccessControl::PERMISSION_UPDATE_PLUGIN)) {
throw new \Exception(__('You do not have permission to activate/deactivate MailPoet plugin.', 'mailpoet'));
}
$this->runActivator();
}
}