pundit: convert users to pundit.

This commit is contained in:
evazion
2020-03-16 00:18:50 -05:00
parent a0c4617057
commit 5c6d26ea24
9 changed files with 88 additions and 59 deletions

View File

@@ -1,5 +1,4 @@
class UserUpgradesController < ApplicationController
before_action :member_only, only: [:show]
helper_method :user
skip_before_action :verify_authenticity_token, only: [:create]
@@ -13,6 +12,7 @@ class UserUpgradesController < ApplicationController
end
def show
authorize User, :upgrade?
end
def user