Add account sensitized (#14361)
* Add account sensitized * Fix i18n normalize * Fix description and spec * Fix spec * Fix wording
This commit is contained in:
		
					parent
					
						
							
								f90620b2f3
							
						
					
				
			
			
				commit
				
					
						d6fe0c94ca
					
				
			
		
					 24 changed files with 136 additions and 13 deletions
				
			
		|  | @ -53,6 +53,13 @@ module Admin | |||
|       redirect_to admin_account_path(@account.id), notice: I18n.t('admin.accounts.destroyed_msg', username: @account.acct) | ||||
|     end | ||||
| 
 | ||||
|     def unsensitive | ||||
|       authorize @account, :unsensitive? | ||||
|       @account.unsensitize! | ||||
|       log_action :unsensitive, @account | ||||
|       redirect_to admin_account_path(@account.id) | ||||
|     end | ||||
| 
 | ||||
|     def unsilence | ||||
|       authorize @account, :unsilence? | ||||
|       @account.unsilence! | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue