- before_action :require_user, :only => [:new, :create, :edit, :update, :revoke]
- before_action :require_moderator, :only => [:new, :create, :edit, :update, :revoke]
- before_action :lookup_user, :only => [:new, :create, :blocks_on, :blocks_by]
+
+ authorize_resource
+
+ before_action :lookup_user, :only => [:new, :create, :revoke_all, :blocks_on, :blocks_by]