Skip to content

Communicate why an upload action was not allowed #395

@jameshadfield

Description

@jameshadfield

Attempting to upload a dataset without the required permissions looks like:

$ nextstrain remote upload ... 
Error: Permission denied

Are you logged in as the correct user? Current user: XXX

It would be helpful to differentiate between two causative scenarios here: user is not part of this group vs user is a viewer of the group and thus can't modify data. I did a bit of searching to see if RBAC recommends against this kind of communication about roles but I couldn't find anything. Specifically, I'm thinking of seeing how feasible it is to change the above error message to something like:

Are you logged in as the correct user?
Current user: XXX is not a member of the group YYY
Are you logged in as the correct user?
Current user: XXX is a "viewer" of the group YYY however
uploading requires "editor" access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions