FIX: add include missing file '/core/actions_dellink.inc.php' in project card
This commit is contained in:
parent
3e9e47d4bd
commit
95ecbb8940
@ -89,6 +89,8 @@ $socid = GETPOST('socid', 'int');
|
|||||||
//if ($user->socid > 0) $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement.
|
//if ($user->socid > 0) $socid = $user->socid; // For external user, no check is done on company because readability is managed by public status of project and assignement.
|
||||||
restrictedArea($user, 'projet', $object->id, 'projet&project');
|
restrictedArea($user, 'projet', $object->id, 'projet&project');
|
||||||
|
|
||||||
|
$permissiondellink = $user->rights->projet->creer; // Used by the include of actions_dellink.inc.php
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
@ -121,6 +123,8 @@ if (empty($reshook)) {
|
|||||||
$action = '';
|
$action = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be include, not include_once
|
||||||
|
|
||||||
if ($action == 'add' && $user->rights->projet->creer) {
|
if ($action == 'add' && $user->rights->projet->creer) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
if (!GETPOST('ref')) {
|
if (!GETPOST('ref')) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user