Add customizable user roles (#18641)
* Add customizable user roles * Various fixes and improvements * Add migration for old settings and fix tootctl role management
This commit is contained in:
		@@ -5,11 +5,15 @@ module Admin
 | 
			
		||||
    before_action :set_account
 | 
			
		||||
 | 
			
		||||
    def new
 | 
			
		||||
      authorize @account, :show?
 | 
			
		||||
 | 
			
		||||
      @account_action  = Admin::AccountAction.new(type: params[:type], report_id: params[:report_id], send_email_notification: true, include_statuses: true)
 | 
			
		||||
      @warning_presets = AccountWarningPreset.all
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def create
 | 
			
		||||
      authorize @account, :show?
 | 
			
		||||
 | 
			
		||||
      account_action                 = Admin::AccountAction.new(resource_params)
 | 
			
		||||
      account_action.target_account  = @account
 | 
			
		||||
      account_action.current_account = current_account
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user