Add view-permission check for referenced objects
Merge pull request #8 from 4teamwork/es-view-permission

Add view-permission check for referenced objects