- before_filter :require_user, :only => [:new, :create, :edit, :delete]
- before_filter :require_moderator, :only => [:new, :create, :edit, :delete]
+ before_filter :require_user, :only => [:new, :create, :edit, :update, :revoke]
+ before_filter :require_moderator, :only => [:new, :create, :edit, :update, :revoke]
+ before_filter :lookup_this_user, :only => [:new, :create, :blocks_on, :blocks_by]
+ before_filter :lookup_user_block, :only => [:show, :edit, :update, :revoke]
+ before_filter :require_valid_params, :only => [:create, :update]
+ before_filter :check_database_readable
+ before_filter :check_database_writable, :only => [:create, :update, :revoke]