Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
421631f2be
@ -221,7 +221,7 @@ if (empty($conf->stripeconnect->enabled))
|
|||||||
$endpoint = \Stripe\WebhookEndpoint::retrieve($conf->global->STRIPE_TEST_WEBHOOK_ID);
|
$endpoint = \Stripe\WebhookEndpoint::retrieve($conf->global->STRIPE_TEST_WEBHOOK_ID);
|
||||||
$endpoint->enabled_events = $stripearrayofwebhookevents;
|
$endpoint->enabled_events = $stripearrayofwebhookevents;
|
||||||
if (GETPOST('webhook', 'alpha') == $conf->global->STRIPE_TEST_WEBHOOK_ID) {
|
if (GETPOST('webhook', 'alpha') == $conf->global->STRIPE_TEST_WEBHOOK_ID) {
|
||||||
if (empty(GETPOST('status', 'alpha'))) {
|
if (! GETPOST('status', 'alpha')) {
|
||||||
$endpoint->disabled = true;
|
$endpoint->disabled = true;
|
||||||
} else {
|
} else {
|
||||||
$endpoint->disabled = false;
|
$endpoint->disabled = false;
|
||||||
|
|||||||
@ -58,7 +58,8 @@ if (! empty($conf->global->MAIN_USE_ADVANCED_PERMS))
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if (isset($user->societe_id) && $user->societe_id > 0) $socid = $user->societe_id;
|
if (isset($user->societe_id) && $user->societe_id > 0) $socid = $user->societe_id;
|
||||||
$feature2 = (($socid && $user->rights->user->self->creer)?'':'user');
|
$feature2 = (($socid && $user->rights->user->self->creer)?'':'user');
|
||||||
if ($user->id == $id && (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->user->self_advance->readperms))) // A user can always read its own card if not advanced perms enabled, or if he has advanced perms
|
// A user can always read its own card if not advanced perms enabled, or if he has advanced perms, except for admin
|
||||||
|
if ($user->id == $id && (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->user->self_advance->readperms) && empty($user->admin)))
|
||||||
{
|
{
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user