Issue #24249:check privs for showing prices and costs

How do people feel about
```C++
if (! _privileges->check("privname")) {
  _widgetA->hide();
  _widgetB->hide();
}
// vs.
_widgetA->setVisible(_privileges->check("privname"));
_widgetB->setVisible(_privileges->check("privname"));
```
?