//&& $au->hasPerm('Documents.Documents','S') << this is dependant on the doc modules
- if (!$au->hasPerm('Core.Projects_All','S') ) {
+ if (php_sapi_name() != 'cli' && !$au->hasPerm('Core.Projects_All','S') ) {
}
- function onInsert($request,$roo)
+ function onInsert($request,$roo,$event)
{
$oo = clone($this);
if (empty($this->code)) {
}
}
- function onUpdate($old, $request, $roo)
+ function onUpdate($old, $request, $roo,$event)
{
$oo = clone($this);
if (empty($this->code)) {