setting usergroup and permission in filter before rendering view.