DigitalPianism_CustomReports - Version 0.1.4

Version Notes

- Add _isAllowed method to backend controllers to handle ACL permissions properly.

Download this release

Release Info

Developer Digital Pianism
Extension DigitalPianism_CustomReports
Version 0.1.4
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.4

app/code/community/DigitalPianism/CustomReports/controllers/BestsellersbycategoryController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_BestsellersbycategoryController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  // Get the session
5
  */
6
  class DigitalPianism_CustomReports_BestsellersbycategoryController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/categories/bestsellersbycategory');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  // Get the session
app/code/community/DigitalPianism/CustomReports/controllers/LifetimesalesController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_LifetimesalesController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  // Get the session
5
  */
6
  class DigitalPianism_CustomReports_LifetimesalesController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/customers/lifetimesales');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  // Get the session
app/code/community/DigitalPianism/CustomReports/controllers/NoupsellsController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_NoupsellsController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  $this->loadLayout()
5
  */
6
  class DigitalPianism_CustomReports_NoupsellsController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/products/noupsells');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  $this->loadLayout()
app/code/community/DigitalPianism/CustomReports/controllers/ShoppedonceController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_ShoppedonceController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  $this->loadLayout()
5
  */
6
  class DigitalPianism_CustomReports_ShoppedonceController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/customers/shoppedonce');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  $this->loadLayout()
app/code/community/DigitalPianism/CustomReports/controllers/SignedupnoorderController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_SignedupnoorderController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  $this->loadLayout()
5
  */
6
  class DigitalPianism_CustomReports_SignedupnoorderController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/customers/signedupnoorder');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  $this->loadLayout()
app/code/community/DigitalPianism/CustomReports/controllers/WishlistController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_WishlistController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  // Get the session
5
  */
6
  class DigitalPianism_CustomReports_WishlistController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/wishlist');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  // Get the session
app/code/community/DigitalPianism/CustomReports/controllers/WorstsellersController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_WorstsellersController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  // Get the session
5
  */
6
  class DigitalPianism_CustomReports_WorstsellersController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/products/worstsellers');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  // Get the session
app/code/community/DigitalPianism/CustomReports/controllers/WorstsellersbycategoryController.php CHANGED
@@ -5,6 +5,11 @@
5
  */
6
  class DigitalPianism_CustomReports_WorstsellersbycategoryController extends Mage_Adminhtml_Controller_Action
7
  {
 
 
 
 
 
8
  public function indexAction()
9
  {
10
  // Get the session
5
  */
6
  class DigitalPianism_CustomReports_WorstsellersbycategoryController extends Mage_Adminhtml_Controller_Action
7
  {
8
+ protected function _isAllowed()
9
+ {
10
+ return Mage::getSingleton('admin/session')->isAllowed('report/categories/worstsellersbycategory');
11
+ }
12
+
13
  public function indexAction()
14
  {
15
  // Get the session
app/code/community/DigitalPianism/CustomReports/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DigitalPianism_CustomReports>
5
- <version>0.1.3</version>
6
  </DigitalPianism_CustomReports>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <DigitalPianism_CustomReports>
5
+ <version>0.1.4</version>
6
  </DigitalPianism_CustomReports>
7
  </modules>
8
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_CustomReports</name>
4
- <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license>Open GPL</license>
7
  <channel>community</channel>
@@ -48,14 +48,11 @@ This module includes the following reports to Magento:&#xD;
48
  &lt;/ul&gt;&#xD;
49
  &#xD;
50
  &lt;p&gt;Thus, if a product is in several categories, it will be counted as a sale for all of these categories.&lt;/p&gt;</description>
51
- <notes>- Fix bug on the No Upsells report&#xD;
52
- - Fix bug on the Signed Up But Never Order report&#xD;
53
- - Fix bug on the Wishlist report&#xD;
54
- - PHPDoc</notes>
55
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
56
- <date>2014-12-19</date>
57
- <time>11:31:37</time>
58
- <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="CustomReports"><dir name="Block"><dir name="Bestsellersbycategory"><file name="Grid.php" hash="29ced24f2347175f8ddb3976b17a3a2d"/></dir><file name="Bestsellersbycategory.php" hash="c04a80017dc23a469138915bd608fe33"/><file name="Customreport.php" hash="f3158fc88585c8924a5e6911ce7f9ee8"/><dir name="Lifetimesales"><file name="Grid.php" hash="f34c7c9aa442377b1bbd86fe234b7e5b"/></dir><file name="Lifetimesales.php" hash="a1074d45ffcadd8ceb6facda2566fa44"/><dir name="Noupsells"><file name="Grid.php" hash="7b3b65388261407a449ff3612f36781c"/></dir><file name="Noupsells.php" hash="961b611b3b1a8f7b1ea57bdc4dbb27a6"/><dir name="Shoppedonce"><file name="Grid.php" hash="96e410f92fd88d5f4c21a8fd8203df6d"/></dir><file name="Shoppedonce.php" hash="e09510c61d1c0310739a361cb3e7f4e6"/><dir name="Signedupnoorder"><file name="Grid.php" hash="abb824130a4f365ce15789923c40d090"/></dir><file name="Signedupnoorder.php" hash="4f73318c21eb7f358aa4ab126d16cafe"/><dir name="Wishlist"><file name="Grid.php" hash="347ca1133e187fa791f6de6387794651"/></dir><file name="Wishlist.php" hash="376cbd949ea15e8c1c7f8d28fef66be4"/><dir name="Worstsellers"><file name="Grid.php" hash="4ebd28d28581125fa550b30543940847"/></dir><file name="Worstsellers.php" hash="311266f3a9d7ceccef74f05034205252"/><dir name="Worstsellersbycategory"><file name="Grid.php" hash="eea476f4bf7fdeb9ead5b9c90d91bb64"/></dir><file name="Worstsellersbycategory.php" hash="44f6b369080be2521eaa80797fde9740"/></dir><dir name="Model"><dir name="Reports"><dir name="Resource"><dir name="Product"><file name="Collection.php" hash="d31c0ea1728f3fe13e4efa438c653678"/></dir></dir></dir></dir><dir name="controllers"><file name="BestsellersbycategoryController.php" hash="29206edddf8ae9b035b7d090e05a65ba"/><file name="LifetimesalesController.php" hash="c10b299d6c1a9bebd3d5ff2e8de17ea4"/><file name="NoupsellsController.php" hash="347366d0fe998772432b0e89d05f9453"/><file name="ShoppedonceController.php" hash="0ecfbe18895945e95b0505b5920d68fd"/><file name="SignedupnoorderController.php" hash="e47e4c34542b9f8f17a90a35b7133db0"/><file name="WishlistController.php" hash="6e9c503b353d0dd772f4365da7cf8124"/><file name="WorstsellersController.php" hash="ebce18de7ce1aa56045a9aadb4684a81"/><file name="WorstsellersbycategoryController.php" hash="0729cea1793efbe733c90c9de7996453"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2233874893d9dcc82540d61aa0668328"/><file name="config.xml" hash="3c4d84631cc4f367bcbe825cdd545ae0"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_CustomReports.xml" hash="2244af82c076ed3abf5064672036ef0b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="DigitalPianism_CustomReports.csv" hash="0fcee0228d1044be8c0b76f02079bf55"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="customreports"><file name="advancedgrid.phtml" hash="0254a130e6c76bf9c8f7a9b7ce1d27ca"/><file name="grid.phtml" hash="a8d2cbad8327390e2b9cd3b7717c384d"/></dir></dir></dir></dir></dir></dir></target></contents>
59
  <compatible/>
60
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
61
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DigitalPianism_CustomReports</name>
4
+ <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license>Open GPL</license>
7
  <channel>community</channel>
48
  &lt;/ul&gt;&#xD;
49
  &#xD;
50
  &lt;p&gt;Thus, if a product is in several categories, it will be counted as a sale for all of these categories.&lt;/p&gt;</description>
51
+ <notes>- Add _isAllowed method to backend controllers to handle ACL permissions properly.</notes>
 
 
 
52
  <authors><author><name>Digital Pianism</name><user>digitalpianism</user><email>contact@digital-pianism.com</email></author></authors>
53
+ <date>2015-07-08</date>
54
+ <time>15:47:35</time>
55
+ <contents><target name="magecommunity"><dir name="DigitalPianism"><dir name="CustomReports"><dir name="Block"><dir name="Bestsellersbycategory"><file name="Grid.php" hash="29ced24f2347175f8ddb3976b17a3a2d"/></dir><file name="Bestsellersbycategory.php" hash="c04a80017dc23a469138915bd608fe33"/><file name="Customreport.php" hash="f3158fc88585c8924a5e6911ce7f9ee8"/><dir name="Lifetimesales"><file name="Grid.php" hash="f34c7c9aa442377b1bbd86fe234b7e5b"/></dir><file name="Lifetimesales.php" hash="a1074d45ffcadd8ceb6facda2566fa44"/><dir name="Noupsells"><file name="Grid.php" hash="7b3b65388261407a449ff3612f36781c"/></dir><file name="Noupsells.php" hash="961b611b3b1a8f7b1ea57bdc4dbb27a6"/><dir name="Shoppedonce"><file name="Grid.php" hash="96e410f92fd88d5f4c21a8fd8203df6d"/></dir><file name="Shoppedonce.php" hash="e09510c61d1c0310739a361cb3e7f4e6"/><dir name="Signedupnoorder"><file name="Grid.php" hash="abb824130a4f365ce15789923c40d090"/></dir><file name="Signedupnoorder.php" hash="4f73318c21eb7f358aa4ab126d16cafe"/><dir name="Wishlist"><file name="Grid.php" hash="347ca1133e187fa791f6de6387794651"/></dir><file name="Wishlist.php" hash="376cbd949ea15e8c1c7f8d28fef66be4"/><dir name="Worstsellers"><file name="Grid.php" hash="4ebd28d28581125fa550b30543940847"/></dir><file name="Worstsellers.php" hash="311266f3a9d7ceccef74f05034205252"/><dir name="Worstsellersbycategory"><file name="Grid.php" hash="eea476f4bf7fdeb9ead5b9c90d91bb64"/></dir><file name="Worstsellersbycategory.php" hash="44f6b369080be2521eaa80797fde9740"/></dir><dir name="Model"><dir name="Reports"><dir name="Resource"><dir name="Product"><file name="Collection.php" hash="d31c0ea1728f3fe13e4efa438c653678"/></dir></dir></dir></dir><dir name="controllers"><file name="BestsellersbycategoryController.php" hash="2ce98f9eeb1f6e60bcf72adad7eb7eca"/><file name="LifetimesalesController.php" hash="51a42b8ffedc3615930c677e03a82bd3"/><file name="NoupsellsController.php" hash="b2b3ca6988131a543ec547250a0d644f"/><file name="ShoppedonceController.php" hash="4014bf160039c1181722a431d0f1ee0f"/><file name="SignedupnoorderController.php" hash="2899fd59c9c33671365a75af45324f8f"/><file name="WishlistController.php" hash="5a4f7ef1e9bf506aece05b171ce0c81c"/><file name="WorstsellersController.php" hash="ade0a42429a9294c1b39e9e808c6716a"/><file name="WorstsellersbycategoryController.php" hash="32c9c1667234773c00b92a79d9afb554"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2233874893d9dcc82540d61aa0668328"/><file name="config.xml" hash="c68b89058cb9609cbda5d3c968112e2f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DigitalPianism_CustomReports.xml" hash="2244af82c076ed3abf5064672036ef0b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="DigitalPianism_CustomReports.csv" hash="0fcee0228d1044be8c0b76f02079bf55"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="digitalpianism"><dir name="customreports"><file name="advancedgrid.phtml" hash="0254a130e6c76bf9c8f7a9b7ce1d27ca"/><file name="grid.phtml" hash="a8d2cbad8327390e2b9cd3b7717c384d"/></dir></dir></dir></dir></dir></dir></target></contents>
56
  <compatible/>
57
  <dependencies><required><php><min>4.1.0</min><max>6.0.0</max></php></required></dependencies>
58
  </package>