Clean code
This commit is contained in:
parent
758ccb0c5b
commit
5b36c7c1ba
7 changed files with 0 additions and 27 deletions
|
|
@ -196,10 +196,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'bookcal';
|
||||
//$permissiontoadd = $user->hasRight('bookcal', 'availabilities', 'write');
|
||||
$permissiontoadd = 1;
|
||||
//$permtoedit = $user->hasRight('bookcal', 'availabilities', 'write');
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='availabilities/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
|
|
@ -245,10 +245,6 @@ print '</div>';
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'bookcal';
|
||||
//$permissiontoadd = $user->rights->bookcal->calendar->write;
|
||||
$permissiontoadd = 1;
|
||||
//$permtoedit = $user->rights->bookcal->calendar->write;
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='calendar/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
|
|
@ -395,10 +395,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'eventorganization';
|
||||
//$permission = $user->rights->eventorganization->conferenceorbooth->write;
|
||||
$permission = 1;
|
||||
//$permtoedit = $user->rights->eventorganization->conferenceorbooth->write;
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
//$param = '';
|
||||
if ($withproject) {
|
||||
|
|
|
|||
|
|
@ -158,9 +158,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'hrm';
|
||||
//$permissiontoadd = $user->rights->hrm->job->write;
|
||||
//$permtoedit = $user->rights->hrm->job->write;
|
||||
$permtoedit = $permissiontoadd;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='job/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
|
|
@ -183,10 +183,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'knowledgemanagement';
|
||||
//$permission = $user->hasRight('knowledgemanagement', 'knowledgerecord', 'write');
|
||||
$permission = 1;
|
||||
//$permtoedit = $user->hasRight('knowledgemanagement', 'knowledgerecord', 'write');
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='knowledgerecord/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
|
|
@ -196,10 +196,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'partnership';
|
||||
//$permission = $user->rights->partnership->write;
|
||||
$permission = 1;
|
||||
//$permtoedit = $user->rights->partnership->write;
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='partnership/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
|
|
@ -182,10 +182,6 @@ if ($object->id) {
|
|||
print dol_get_fiche_end();
|
||||
|
||||
$modulepart = 'stocktransfer';
|
||||
//$permission = $user->rights->stocktransfer->stocktransfer->write;
|
||||
$permission = 1;
|
||||
//$permtoedit = $user->rights->stocktransfer->stocktransfer->write;
|
||||
$permtoedit = 1;
|
||||
$param = '&id='.$object->id;
|
||||
|
||||
//$relativepathwithnofile='stocktransfer/' . dol_sanitizeFileName($object->id).'/';
|
||||
|
|
|
|||
Loading…
Reference in a new issue