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 d134578 commit 3cc679a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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::allow::method', 'core', ''), init('type'))){
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allowonly::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::allow::method', 'core', ''), $jsonrpc->getMethod())){
if(config::byKey('api::allow::method', 'core', '') !== '' && !preg_match(config::byKey('api::allowonly::method', 'core', ''), $jsonrpc->getMethod())){
throw new Exception(__('Cette demande n\'est autorisée', __FILE__) . ' ' . getClientIp());
}

Expand Down
10 changes: 5 additions & 5 deletions desktop/php/administration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2180,15 +2180,15 @@
</div>

<div class="form-group">
<label class="col-lg-4 col-md-5 col-sm-6 col-xs-6 control-label">{{Interdire les methodes api (regexp)}}</label>
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-6">
<label class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label">{{Interdire 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::forbidden::method">
</div>
</div>
<div class="form-group">
<label class="col-lg-4 col-md-5 col-sm-6 col-xs-6 control-label">{{N'autoriser que les methodes api (regexp)}}</label>
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-6">
<input type="text" class="configKey form-control" data-l1key="api::forbidden::method">
<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">
</div>
</div>

Expand Down

0 comments on commit 3cc679a

Please sign in to comment.