Chargeback - Version 1.1.5

Version Notes

Connect Magento to Chargeback app.

Download this release

Release Info

Developer Scott Stone
Extension Chargeback
Version 1.1.5
Comparing to
See all releases


Code changes from version 1.1.4 to 1.1.5

app/code/community/Chargeback/Auth/Helper/Data.php CHANGED
@@ -109,6 +109,24 @@ class Chargeback_Auth_Helper_Data extends Mage_Core_Helper_Abstract {
109
  'name' => $this->name,
110
  'current_password' => $apiPassword
111
  ))->save();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  return $apiPassword.':'.$key.':'.$secret;
113
 
114
  }
109
  'name' => $this->name,
110
  'current_password' => $apiPassword
111
  ))->save();
112
+
113
+ $existing = Mage::getModel('api2/acl_filter_attribute')->getCollection()->addFieldToFilter('user_type',array('eq'=>'admin'))->load()->getFirstItem();
114
+ if($existing){
115
+ $existing
116
+ ->setUserType('admin')
117
+ ->setResourceId('all')
118
+ ->setOperation('')
119
+ ->setAllowedAttributes(null)
120
+ ->save();
121
+ } else {
122
+ Mage::getModel('api2/acl_filter_attribute')
123
+ ->setData(array(
124
+ 'user_type' => 'admin',
125
+ 'resource_id' => "all",
126
+ 'operation' => '',
127
+ 'allowed_attributes' => null
128
+ ))->save();
129
+ }
130
  return $apiPassword.':'.$key.':'.$secret;
131
 
132
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Chargeback</name>
4
- <version>1.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</license>
7
  <channel>community</channel>
@@ -42,9 +42,9 @@ Features&#xD;
42
  &lt;/ul&gt;</description>
43
  <notes>Connect Magento to Chargeback app.</notes>
44
  <authors><author><name>Scott Stone</name><user>MAG003612282</user><email>datasources@chargeback.com</email></author></authors>
45
- <date>2017-06-05</date>
46
- <time>22:41:46</time>
47
- <contents><target name="magecommunity"><dir name="Chargeback"><dir name="Auth"><dir name="Block"><file name="Completed.php" hash="0b41672dea756ff5c5d8490a1884e829"/><file name="Hidden.php" hash="7c41dc3f37768a53180dec4cac19ef50"/></dir><dir name="Helper"><file name="Data.php" hash="3f1cd035acd35df5e708e08ab1df3e65"/></dir><dir name="Model"><file name="Observer.php" hash="9235f9dfb7fbc6bbe396d12928371551"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c9736a7540468bda74045681e1fd42e"/><file name="api.xml" hash="cd2eb95785e878709ea5ce2c4be22d97"/><file name="config.xml" hash="a68ebcb8d5f001d55c9137a2e55ef2fd"/><file name="system.xml" hash="6fc80245c66eb7154cca67875f1b6ec2"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="chargeback"><file name="auth.xml" hash="bbe2f7d97aab50bd1f8f457c9c990dd6"/></dir></dir><dir name="template"><dir name="chargeback"><file name="connect.phtml" hash="8c12ad3eedc080a854161ac32a583311"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chargeback_Auth.xml" hash="63ac746d27e68b911e44879cf139a2c3"/></dir></target><target name="mage"><dir name="js"><dir name="adminhtml"><dir name="chargeback"><file name="chargeback.js" hash="67766c60c372530a950aff803e217fe2"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="chargeback.css" hash="f5e25253f4ce556f071d51d91e6583ac"/><dir name="images"><dir name="chargeback"><file name="0-free.png" hash="0bf2ae386e1ce5ad54fcc1db69412b3a"/><file name="0-quality.png" hash="212307c6779d502901fb1e18177fa47f"/><file name="0-recovered.png" hash="e4d97ba6d6fb0993d2d9c007f3d4e40a"/><file name="0-secure.png" hash="d666b88a3b08b723e79d8733aa1fdda2"/><file name="2016-horizontal-400px.png" hash="ce0e3011f26399edf3ecca164f65aa6b"/><file name="cb-demo.gif" hash="239cd0fd643d4c9a6d5d9cac2b197cb2"/><file name="connected.png" hash="89d134bb5817029bff7777cef6e8c0f6"/><file name="connecting-magento.gif" hash="0bcaca123467cc7e9cd32b3fd8f9501d"/><file name="logo.png" hash="d7504a03906360d0945976c56cf62fce"/><file name="not-connected.png" hash="1b9d2ac4cdf3e71956ee78b5df025199"/></dir></dir></dir></dir></dir></target></contents>
48
  <compatible/>
49
  <dependencies><required><php><min>5.5.0</min><max>7.1.0</max></php></required></dependencies>
50
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Chargeback</name>
4
+ <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</license>
7
  <channel>community</channel>
42
  &lt;/ul&gt;</description>
43
  <notes>Connect Magento to Chargeback app.</notes>
44
  <authors><author><name>Scott Stone</name><user>MAG003612282</user><email>datasources@chargeback.com</email></author></authors>
45
+ <date>2017-06-09</date>
46
+ <time>01:57:45</time>
47
+ <contents><target name="magecommunity"><dir name="Chargeback"><dir name="Auth"><dir name="Block"><file name="Completed.php" hash="0b41672dea756ff5c5d8490a1884e829"/><file name="Hidden.php" hash="7c41dc3f37768a53180dec4cac19ef50"/></dir><dir name="Helper"><file name="Data.php" hash="db96ed4240d1fb71b18409d6c7f0120c"/></dir><dir name="Model"><file name="Observer.php" hash="9235f9dfb7fbc6bbe396d12928371551"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c9736a7540468bda74045681e1fd42e"/><file name="api.xml" hash="cd2eb95785e878709ea5ce2c4be22d97"/><file name="config.xml" hash="a68ebcb8d5f001d55c9137a2e55ef2fd"/><file name="system.xml" hash="6fc80245c66eb7154cca67875f1b6ec2"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="chargeback"><file name="auth.xml" hash="bbe2f7d97aab50bd1f8f457c9c990dd6"/></dir></dir><dir name="template"><dir name="chargeback"><file name="connect.phtml" hash="8c12ad3eedc080a854161ac32a583311"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chargeback_Auth.xml" hash="63ac746d27e68b911e44879cf139a2c3"/></dir></target><target name="mage"><dir name="js"><dir name="adminhtml"><dir name="chargeback"><file name="chargeback.js" hash="67766c60c372530a950aff803e217fe2"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="chargeback.css" hash="f5e25253f4ce556f071d51d91e6583ac"/><dir name="images"><dir name="chargeback"><file name="0-free.png" hash="0bf2ae386e1ce5ad54fcc1db69412b3a"/><file name="0-quality.png" hash="212307c6779d502901fb1e18177fa47f"/><file name="0-recovered.png" hash="e4d97ba6d6fb0993d2d9c007f3d4e40a"/><file name="0-secure.png" hash="d666b88a3b08b723e79d8733aa1fdda2"/><file name="2016-horizontal-400px.png" hash="ce0e3011f26399edf3ecca164f65aa6b"/><file name="cb-demo.gif" hash="239cd0fd643d4c9a6d5d9cac2b197cb2"/><file name="connected.png" hash="89d134bb5817029bff7777cef6e8c0f6"/><file name="connecting-magento.gif" hash="0bcaca123467cc7e9cd32b3fd8f9501d"/><file name="logo.png" hash="d7504a03906360d0945976c56cf62fce"/><file name="not-connected.png" hash="1b9d2ac4cdf3e71956ee78b5df025199"/></dir></dir></dir></dir></dir></target></contents>
48
  <compatible/>
49
  <dependencies><required><php><min>5.5.0</min><max>7.1.0</max></php></required></dependencies>
50
  </package>