2
0
forked from Wavyzz/dolibarr

Fix look and field v10

This commit is contained in:
Laurent Destailleur
2019-06-12 19:03:22 +02:00
parent e81663ec34
commit 2be5e9615d
2 changed files with 1 additions and 2 deletions

View File

@@ -690,7 +690,7 @@ if ($action == 'create')
dol_fiche_head();
print '<table class="border tableforfield" width="100%">';
print '<table class="border centpercent">';
// Type of event
if (! empty($conf->global->AGENDA_USE_EVENT_TYPE))

View File

@@ -252,7 +252,6 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
$tmpreadok=1;
foreach($feature2 as $subfeature)
{
var_dump($subfeature);
if ($subfeature == 'user' && $user->id == $objectid) continue; // A user can always read its own card
if (! empty($subfeature) && empty($user->rights->$feature->$subfeature->lire) && empty($user->rights->$feature->$subfeature->read)) { $tmpreadok=0; }
elseif (empty($subfeature) && empty($user->rights->$feature->lire) && empty($user->rights->$feature->read)) { $tmpreadok=0; }