The "WARNING: Disabling SQL rewriting means that node access security is disabled..." warning shows up at the top of the query settings dialog. It draws attention to itself even when the user had no intention of disabling SQL rewriting. I think it would be reasonable to display the warning only after the user checks the corresponding checkbox. In fact, the movement on the screen should attract even more attention.

CommentFileSizeAuthor
#1 1416018-1.sql-rewrite-warning.patch1.89 KBksenzee
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ksenzee’s picture

Status: Active » Needs review
FileSize
1.89 KB

I added a generic Drupal.behaviors.viewsUiEditView to views-admin.js because I don't think such a small snippet warrants its own behavior, but there didn't seem to be a generic one to put it in. Another approach would be to make the warning a separate form element and use dependency for it, and if that's preferred I can reroll the patch.

dawehner’s picture

Status: Needs review » Fixed

Now that query settings has more then this option this definitive makes sense.
In fact this really absorbs attention. Thanks! Committed to 7.x-3.x

In general maybe the warning text could be improved as well, because it's currently quite technical.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.