Added view-by-view auth check