Issue #3065464 by tstoeckler: Support the declared admin_permission in permission providers and query access handlers