DMPRoadmap / roadmap

DCC/UC3 collaboration for a data management planning tool
MIT License
102 stars 109 forks source link

User should not be able to share a plan with him/herself #286

Closed stephaniesimms closed 7 years ago

stephaniesimms commented 7 years ago

I accidentally invited myself to collaborate on a plan (same user account) and was able to do so. Now I receive two email notices for every action taken on the plan. I cannot remove myself (this is working as expected, but I should not be able to invite myself in the first place). In addition, I have two copies of the same plan on My Plans page (second screenshot).

auto-share

2-plans

stephaniesimms commented 7 years ago

accidentally closed

jollopre commented 7 years ago

The message provided when user tries to share plan with (him|her)self is:

Impossible sharing plan with someone@somewhere.com since that email matches with the owner of the plan

stephaniesimms commented 7 years ago

on Roadmap stage I just shared another plan with myself (screenshot below)

screen shot 2017-05-02 at 10 32 04 am

sjDCC commented 7 years ago

Fixed on both dmponline-test and staging. Generates correct error message