Add create databox console command

This commit is contained in:
Thibaud Fabre
2016-10-14 14:30:33 +02:00
parent a040dc2aea
commit efc5842e06
11 changed files with 348 additions and 82 deletions

View File

@@ -1152,17 +1152,30 @@ class databox extends base implements ThumbnailedElement
$stmt->closeCursor();
$this->app->getAclForUser($user)->give_access_to_base($base_ids);
foreach ($base_ids as $base_id) {
$this->app->getAclForUser($user)->update_rights_to_base($base_id, [
'canpush' => 1, 'cancmd' => 1
, 'canputinalbum' => 1, 'candwnldhd' => 1, 'candwnldpreview' => 1, 'canadmin' => 1
, 'actif' => 1, 'canreport' => 1, 'canaddrecord' => 1, 'canmodifrecord' => 1
, 'candeleterecord' => 1, 'chgstatus' => 1, 'imgtools' => 1, 'manage' => 1
, 'modify_struct' => 1, 'nowatermark' => 1
]
);
'canpush' => 1,
'cancmd' => 1,
'canputinalbum' => 1,
'candwnldhd' => 1,
'candwnldpreview' => 1,
'canadmin' => 1,
'actif' => 1,
'canreport' => 1,
'canaddrecord' => 1,
'canmodifrecord' => 1,
'candeleterecord' => 1,
'chgstatus' => 1,
'imgtools' => 1,
'manage' => 1,
'modify_struct' => 1,
'nowatermark' => 1
]);
}
$this->app->getAclForUser($user)->delete_data_from_cache();
return $this;
}