Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 24, 2024
1 parent 3cc679a commit e5e2af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/api/jeeApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if(config::byKey('api::forbidden::method', 'core', '') !== '' && preg_match(config::byKey('api::forbidden::method', 'core', ''), init('type'))){
throw new Exception(__('Cette demande n\'est autorisée', __FILE__) . ' ' . getClientIp());
}
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allowonly::method', 'core', ''), init('type'))){
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allow::method', 'core', ''), init('type'))){
throw new Exception(__('Cette demande n\'est autorisée', __FILE__) . ' ' . getClientIp());
}
$type = init('type');
Expand Down Expand Up @@ -282,7 +282,7 @@
if(config::byKey('api::forbidden::method', 'core', '') !== '' && preg_match(config::byKey('api::forbidden::method', 'core', ''), $jsonrpc->getMethod())){
throw new Exception(__('Cette demande n\'est autorisée', __FILE__));
}
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allowonly::method', 'core', ''), $jsonrpc->getMethod())){
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allow::method', 'core', ''), $jsonrpc->getMethod())){
throw new Exception(__('Cette demande n\'est autorisée', __FILE__) . ' ' . getClientIp());
}

Expand Down
2 changes: 1 addition & 1 deletion desktop/php/administration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,7 @@
<div class="form-group">
<label class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label">{{N'autoriser que les methodes api (regexp)}}</label>
<div class="col-lg-10 col-md-9 col-sm-8 col-xs-12">
<input type="text" class="configKey form-control" data-l1key="api::allowonly::method">
<input type="text" class="configKey form-control" data-l1key="api::allow::method">
</div>
</div>

Expand Down

0 comments on commit e5e2af6

Please sign in to comment.