When attempting to view a Document as a regular user with valid read permissions, a PHP error occurs with a callback to /app/Http/Controllers/DocumentController.php, in a function called view().
Since the code snippet included the permissions management for Documents, I enabled it for the User. The Document could then be viewed by their account without problems. However, since the permissions management is toggleable, it should either be on by default to prevent the error from appearing, or the view should not render the permissions tab at all if permission management is not allowed for the User.
Version: 1.0.1
When attempting to view a Document as a regular user with valid read permissions, a PHP error occurs with a callback to /app/Http/Controllers/DocumentController.php, in a function called view().
Since the code snippet included the permissions management for Documents, I enabled it for the User. The Document could then be viewed by their account without problems. However, since the permissions management is toggleable, it should either be on by default to prevent the error from appearing, or the view should not render the permissions tab at all if permission management is not allowed for the User.