dont show price for non admins

This commit is contained in:
Luca Haid
2024-12-10 13:56:06 +01:00
parent d275d6823d
commit c73bc38084

View File

@@ -28,6 +28,13 @@ class WarehouseEShopController extends TTCrud {
return $this->user->can(["WarehouseEShop"]);
}
protected function prepareCrudConfig() {
if (!$this->user->can('WarehouseAdmin')) {
$this->columns[2]['table'] = false;
}
}
public function getAction() {
$filter = $this->postData['filters'] ?? [];
$order = $this->postData['order'] ?? ['key' => null, 'order' => 'ASC'];