File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,4 @@ Magento attachments plugin with attachment type, multistore and visibility group
88
88
89
89
### 1.3.0
90
90
91
- * Add composer file and visibility groups feature
91
+ * Add composer file, visibility groups feature and minor fixes including proper ACL rules
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ protected function _initAction()
17
17
18
18
protected function _isAllowed ()
19
19
{
20
- return Mage::getSingleton ('admin/session ' )->isAllowed ('catalog/attachments ' );
20
+ return Mage::getSingleton ('admin/session ' )->isAllowed ('catalog/attachments/attachment ' );
21
21
}
22
22
23
23
public function indexAction ()
Original file line number Diff line number Diff line change 9
9
*/
10
10
class LCB_Attachments_Adminhtml_CategoryController extends Mage_Adminhtml_Controller_Action {
11
11
12
+ protected function _isAllowed ()
13
+ {
14
+ return Mage::getSingleton ('admin/session ' )->isAllowed ('catalog/attachments/category ' );
15
+ }
16
+
12
17
protected function _initAction ()
13
18
{
14
19
$ this ->loadLayout ()->_setActiveMenu ("lcb_attachments/category " )->_addBreadcrumb (Mage::helper ("adminhtml " )->__ ("Category Manager " ), Mage::helper ("adminhtml " )->__ ("Category Manager " ));
Original file line number Diff line number Diff line change 9
9
*/
10
10
class LCB_Attachments_ImagesController extends Mage_Core_Controller_Front_Action {
11
11
12
- public function GetAction ()
12
+ public function getAction ()
13
13
{
14
14
15
15
$ imageData = $ this ->getRequest ()->getParam ('photos ' );
Original file line number Diff line number Diff line change 9
9
*/
10
10
class LCB_Attachments_IndexController extends Mage_Core_Controller_Front_Action {
11
11
12
- public function IndexAction ()
12
+ public function indexAction ()
13
13
{
14
14
15
15
/**
@@ -71,7 +71,7 @@ public function IndexAction()
71
71
*
72
72
* @return void
73
73
*/
74
- public function GetAction ()
74
+ public function getAction ()
75
75
{
76
76
77
77
$ _isValidFormKey = $ this ->_validateFormKey ();
@@ -214,7 +214,7 @@ public function GetAction()
214
214
*
215
215
* @return void
216
216
*/
217
- public function DownloadAction ()
217
+ public function downloadAction ()
218
218
{
219
219
$ fileUrl = $ this ->getRequest ()->getParam ('url ' );
220
220
$ formKey = $ this ->getRequest ()->getParam ('form_key ' );
You can’t perform that action at this time.
0 commit comments