Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Refactor code in /tasks/admin_or_owner #895

Open
ktirumalafb opened this issue Feb 25, 2022 · 0 comments
Open

Refactor code in /tasks/admin_or_owner #895

ktirumalafb opened this issue Feb 25, 2022 · 0 comments
Assignees

Comments

@ktirumalafb
Copy link
Contributor

If you look here: https://github.com/facebookresearch/dynabench/blob/main/api/controllers/tasks.py#L241 the default is that we return True unless the if statements are satisfied, I think it should be the other way around (we start off with False and we return the user is an admin or owner only if the if statements are satisfied)

@ktirumalafb ktirumalafb self-assigned this Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant