Skip to content

Commit

Permalink
Merge pull request #76 from pagantis/permissions
Browse files Browse the repository at this point in the history
Permissions
  • Loading branch information
pgarcess authored Sep 15, 2020
2 parents b16e2f3 + fc304f2 commit bcf6c3a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.2-apache

ENV WORDPRESS_VERSION=5.5
ENV WOOCOMMERCE_VERSION=4.4.1
ENV WORDPRESS_VERSION=5.5.1
ENV WOOCOMMERCE_VERSION=4.5.1

RUN cd /tmp \
&& curl https://es.wordpress.org/wordpress-$WORDPRESS_VERSION-es_ES.tar.gz -o $WORDPRESS_VERSION-es_ES.tar.gz \
Expand Down
11 changes: 7 additions & 4 deletions WC_Pagantis.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Pagantis
* Plugin URI: http://www.pagantis.com/
* Description: Financiar con Pagantis
* Version: 8.6.7
* Version: 8.6.8
* Author: Pagantis
*
* Text Domain: pagantis
Expand Down Expand Up @@ -774,7 +774,8 @@ public function pagantisRegisterEndpoint()
'methods' => 'GET',
'callback' => array(
$this,
'readLogs')
'readLogs'),
'permission_callback' => '__return_true',
),
true
);
Expand All @@ -786,7 +787,8 @@ public function pagantisRegisterEndpoint()
'methods' => 'GET, POST',
'callback' => array(
$this,
'updateExtraConfig')
'updateExtraConfig'),
'permission_callback' => '__return_true',
),
true
);
Expand All @@ -798,7 +800,8 @@ public function pagantisRegisterEndpoint()
'methods' => 'GET',
'callback' => array(
$this,
'readApi')
'readApi'),
'permission_callback' => '__return_true',
),
true
);
Expand Down
1 change: 0 additions & 1 deletion controllers/paymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

define('__ROOT__', dirname(dirname(__FILE__)));


class WcPagantisGateway extends WC_Payment_Gateway
{
const METHOD_ID = "pagantis";
Expand Down
3 changes: 0 additions & 3 deletions controllers/paymentController4x.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
exit;
}

define('__ROOT__', dirname(dirname(__FILE__)));


class WcPagantis4xGateway extends WC_Payment_Gateway
{
const METHOD_ID = "pagantis4x";
Expand Down
1 change: 0 additions & 1 deletion templates/admin_header.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<img id="pagantis_logo" src="<?php echo esc_url($logo); ?>" />
<h3><?php echo $panel_header; ?></h3>
<p> <?php echo $panel_description; ?></p>
<p><a href="https://bo.pagantis.com" target="_blank" class="button button-primary">
<?php echo $button1_label; ?></a>
Expand Down

0 comments on commit bcf6c3a

Please sign in to comment.