Fix more Rails 4.1 errors for Rails 2.3 style conditions statements.

These errors only occur when upgrading permissions.