mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-19 00:21:40 +01:00
Use settings pack for InvitesController (#229)
This commit is contained in:
parent
81b0145759
commit
161d286df2
@ -6,6 +6,7 @@ class InvitesController < ApplicationController
|
|||||||
layout 'admin'
|
layout 'admin'
|
||||||
|
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
|
before_action :set_pack
|
||||||
|
|
||||||
def index
|
def index
|
||||||
authorize :invite, :create?
|
authorize :invite, :create?
|
||||||
@ -37,6 +38,10 @@ class InvitesController < ApplicationController
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def set_pack
|
||||||
|
use_pack 'settings'
|
||||||
|
end
|
||||||
|
|
||||||
def resource_params
|
def resource_params
|
||||||
params.require(:invite).permit(:max_uses, :expires_in)
|
params.require(:invite).permit(:max_uses, :expires_in)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user