public function checkPermissions() { if (!$this->hasPermissions()) { $this->grid->throwPermission($this->permission, $this->privilege); } }