Merge branch 'eshop-only-admin-price' into 'master'

dont show price for non admins

See merge request fronk/thetool!800
This commit is contained in:
Luca Haid
2024-12-10 12:57:01 +00:00

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'];