fix handling view permission in relation widget
Merge pull request #8 from getpenelope/fix_view_permission_172

fix handling view permission in relation widget