diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-23 16:05:19 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-05-23 16:05:19 +0200 |
commit | e0ef89c73f6b380a2841b9dcde07725d515340a4 (patch) | |
tree | 3e96aef309d0ce02649fc115abb4eb4f3020beb2 /app/controllers | |
parent | 2289250f69e78a8888f8fc4db7ec24a1049c161e (diff) | |
parent | d8864b9e9d4fd56606a3b809bedeb1216b6620ae (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/invites_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/settings/applications_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 2e9f73bb8..70818610c 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -9,7 +9,7 @@ class InvitesController < ApplicationController before_action :set_pack def index - authorize :invite, :index? + authorize :invite, :create? @invites = invites @invite = Invite.new(expires_in: 1.day.to_i) diff --git a/app/controllers/settings/applications_controller.rb b/app/controllers/settings/applications_controller.rb index 35a6f7f9e..03c890a50 100644 --- a/app/controllers/settings/applications_controller.rb +++ b/app/controllers/settings/applications_controller.rb @@ -6,7 +6,7 @@ class Settings::ApplicationsController < Settings::BaseController before_action :prepare_scopes, only: [:create, :update] def index - @applications = current_user.applications.page(params[:page]) + @applications = current_user.applications.order(id: :desc).page(params[:page]) end def new |