Merge branch '3.7' of git@github.com:Dolibarr/dolibarr.git into 3.8
This commit is contained in:
commit
ca1e3b4d55
@ -126,10 +126,10 @@ before_script:
|
|||||||
echo "Set timezone"
|
echo "Set timezone"
|
||||||
echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$PHP_VERSION_NAME/etc/php.ini
|
echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$PHP_VERSION_NAME/etc/php.ini
|
||||||
if [ "$TRAVIS_PHP_VERSION" = '5.3' ] || [ "$TRAVIS_PHP_VERSION" = '5.4' ]; then
|
if [ "$TRAVIS_PHP_VERSION" = '5.3' ] || [ "$TRAVIS_PHP_VERSION" = '5.4' ]; then
|
||||||
echo
|
#echo
|
||||||
echo "Enabling APC for PHP <= 5.4"
|
#echo "Enabling APC for PHP <= 5.4"
|
||||||
# Documentation says it should be available for PHP <= 5.6 but it's not for 5.5 and 5.6!
|
# Documentation says it should be available for PHP <= 5.6 but it's not for 5.5 and 5.6!
|
||||||
echo 'extension = apc.so' >> ~/.phpenv/versions/$PHP_VERSION_NAME/etc/php.ini
|
#echo 'extension = apc.so' >> ~/.phpenv/versions/$PHP_VERSION_NAME/etc/php.ini
|
||||||
echo
|
echo
|
||||||
echo "Enabling Memcached for PHP <= 5.4"
|
echo "Enabling Memcached for PHP <= 5.4"
|
||||||
# Documentation says it should be available for all PHP versions but it's not for 5.5 and 5.6, 7.0 and nightly!
|
# Documentation says it should be available for all PHP versions but it's not for 5.5 and 5.6, 7.0 and nightly!
|
||||||
|
|||||||
@ -131,11 +131,11 @@ class Export
|
|||||||
//print_r("$perm[0]-$perm[1]-$perm[2]<br>");
|
//print_r("$perm[0]-$perm[1]-$perm[2]<br>");
|
||||||
if (! empty($perm[2]))
|
if (! empty($perm[2]))
|
||||||
{
|
{
|
||||||
$bool=$user->rights->$perm[0]->$perm[1]->$perm[2];
|
$bool=$user->rights->{$perm[0]}->{$perm[1]}->{$perm[2]};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$bool=$user->rights->$perm[0]->$perm[1];
|
$bool=$user->rights->{$perm[0]}->{$perm[1]};
|
||||||
}
|
}
|
||||||
if ($perm[0]=='user' && $user->admin) $bool=true;
|
if ($perm[0]=='user' && $user->admin) $bool=true;
|
||||||
if (! $bool) break;
|
if (! $bool) break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user