Updated access logic.
Getting rid of warnings and exceptions for access test.
Merge branch '8.x-2.x' of https://github.com/md-systems/file_entity into 8.x-2.x