Open ariouche opened 5 years ago
Hello guys. Any news on this issue?
The canView() seems to be working OK for me:
https://www.screencast.com/t/K3ojYlpmY
I've changed that empty() test to cast to array as per your suggestion.
https://github.com/Fabrik/fabrik/commit/1cc334d400bad33b3af96158800cf5c93ba2dfd9
Great I've also found that when a user isn't allowed to download a file, he can do it directly using the Ajax url
index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=fileupload&method=ajax_download&format=raw&element_id=4088&formid=182&rowid=1&repeatcount=0&ajaxIndex=
Hello guys. Any news on this issue?
$this->canView()
line 3361 doesn't seem to be workingIn addition,
if (empty($row))
line 3377 always returns false even of the object is empty so I suggest to cast it toarray
in order to validate the test:if (empty((array)$row))