airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-3133) Sharing suggestion should not shows owner's/currently logged in user's username
Date Thu, 18 Jul 2019 13:52:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888000#comment-16888000
] 

Marcus Christie commented on AIRAVATA-3133:
-------------------------------------------

Hi [~Aarushi],

Can you look into fixing this one? Here are some pointers:
* you can get the current user's airavataInternalUserId from {{session.Session.airavataInternalUserId}},
see https://github.com/apache/airavata-django-portal/blob/master/django_airavata/apps/groups/static/django_airavata_groups/js/containers/GroupCreateContainer.vue#L26
* then you can filter that user out of {{userSuggestions}}: https://github.com/apache/airavata-django-portal/blob/master/django_airavata/static/common/js/components/SharedEntityEditor.vue#L265



> Sharing suggestion should not shows owner's/currently logged in user's username
> -------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-3133
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3133
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>         Environment: https://django.staging.seagrid.org/
>            Reporter: Aarushi Bisht
>            Assignee: Aarushi Bisht
>            Priority: Major
>
> Step to reproduce the bug:
>  
> 1) Create a new project
> 2) Click on edit action
> 3) Click on the share button
> 4) In the "Type to get suggestions" box, type the current logged in user's username
> 5) Give it READ/WRITE permission and save
> 6) Refresh the page, the sharing will disappear
>  
> The suggestion shows the current logged in user's name even if the logged-in user is
the owner of the project. The owner automatically has READ/WRITE permissions and suggesting
his name is misleading for the user.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message