generic views permission