diff --git a/README.md b/README.md index 87204fa..cdc6002 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ + +Simple fork to add [SUPEE-6285 compatibility](https://github.com/jreinke/magento-admin-theme/pull/19) +(*Thanks to [aurmil](https://github.com/aurmil) to submit [issue](https://github.com/jreinke/magento-admin-theme/issues/18) on [original project repository](https://github.com/jreinke/magento-admin-theme.git)*) + ![Magento Admin Theme - Magento.com](http://i.imgur.com/9o7Dt70.png) ![Magento Admin Theme - Magento 2](http://i.imgur.com/gYzYTeI.png) @@ -14,11 +18,11 @@ Install with [modgit](https://github.com/jreinke/modgit): $ cd /path/to/magento $ modgit init - $ modgit clone admin-theme https://github.com/jreinke/magento-admin-theme.git + $ modgit clone admin-theme https://github.com/nolwennig/magento-admin-theme.git or download package manually: -* Download latest version [here](https://github.com/jreinke/magento-admin-theme/archive/master.zip) +* Download latest version [here](https://github.com/nolwennig/magento-admin-theme/archive/master.zip) * Logout from admin * Unzip in Magento root folder * Clear cache @@ -28,4 +32,4 @@ or download package manually: Switch theme from dropdown added in footer. -Other awesome Magento extensions available here [www.bubbleshop.net](https://www.bubbleshop.net/) \ No newline at end of file +Other awesome Magento extensions available here [www.bubbleshop.net](https://www.bubbleshop.net/) diff --git a/app/code/community/Bubble/AdminTheme/controllers/Adminhtml/ThemeController.php b/app/code/community/Bubble/AdminTheme/controllers/Adminhtml/ThemeController.php index 21b357c..5a61b32 100644 --- a/app/code/community/Bubble/AdminTheme/controllers/Adminhtml/ThemeController.php +++ b/app/code/community/Bubble/AdminTheme/controllers/Adminhtml/ThemeController.php @@ -16,4 +16,9 @@ public function changeAction() } $this->_redirectReferer(); } -} \ No newline at end of file + + protected function _isAllowed() + { + return Mage::getSingleton('admin/session')->isAllowed('system/config'); + } +}