Save query if user can't ban users.

Fix #1420 Ban page visible even if no allowed to edit ban. #1421