Cloud-CV / Cloud-CV/EvalAI

Host Deletion function performs no check for the type of Host

Open
#2,664 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
984
Avg merge
2h 54m
Merged PRs (30d)
14

Description

#Bug

Expected behaviour:
- Participants should not be allowed to remove the admin of the host team.
- Admin should be provided proper warning when he/she tries to remove himself/herself from the team.

Observed behaviour:
- When Admin tries to remove himself, the whole team along with his members get removed.
- The participant of the host team is able to remove it's admin.

Steps to reproduce the problem:
After writing controller function for deleting host.
Go to Host Team -> Create a new host team -> Add members to it -> Try deleting Admin

Operating System:
Ubuntu 18.04

Browser:
Google Chrome

![ezgif com-video-to-gif (9)](https://user-images.githubusercontent.com/44888949/74377869-cdf13d00-4e0a-11ea-80f2-e3d5f8ea06b6.gif)

Reference: https://github.com/Cloud-CV/EvalAI/blob/master/apps/hosts/views.py#L204-L206

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.