mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:42:28 +01:00 
			
		
		
		
	Possibilité de supprimer un compte
This commit is contained in:
		@@ -178,7 +178,15 @@ elseif (($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCA
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ($_SESSION["role"] == Role::ADMIN) { ?>
 | 
			
		||||
if ($_SESSION["role"] == Role::ADMIN) {
 | 
			
		||||
	if ($user->getRole() != Role::ADMIN && $team == null) { ?>
 | 
			
		||||
        <hr/>
 | 
			
		||||
 | 
			
		||||
        <form method="POST">
 | 
			
		||||
            <input type="submit" name="delete_account" class="btn btn-secondary btn-lg btn-block"
 | 
			
		||||
                   style="background-color: #ff2e34" value="Supprimer le compte"/>
 | 
			
		||||
        </form>
 | 
			
		||||
	<?php } ?>
 | 
			
		||||
    <hr />
 | 
			
		||||
    <form method="POST">
 | 
			
		||||
        <input type="submit" name="view_as" class="btn btn-secondary btn-lg btn-block" style="background-color: #2ba42b"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user