mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	fix user edit bug, allow to delete users from the database (#40)
This commit is contained in:
		@@ -76,6 +76,11 @@
 | 
			
		||||
 | 
			
		||||
            <button type="submit" class="btn btn-primary">Save</button>
 | 
			
		||||
            <a href="/admin/users/" class="btn btn-secondary">Cancel</a>
 | 
			
		||||
            {{if eq $.Session.IsAdmin true}}
 | 
			
		||||
            {{if eq .User.Source "db"}}
 | 
			
		||||
            <a href="/admin/users/delete?pkey={{.User.Email}}" data-toggle="confirmation" data-title="Really delete user and associated peers?" title="Delete user and associated peers" class="btn btn-danger float-right">Delete</a>
 | 
			
		||||
            {{end}}
 | 
			
		||||
            {{end}}
 | 
			
		||||
        </form>
 | 
			
		||||
    </div>
 | 
			
		||||
    {{template "prt_footer.html" .}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user