bug #2876: Improve GROUP_ADMIN_VIEWS check
(cherry picked from commit ec0f86a227100146f5c90d02e7ee48d8ddb3a6d9)