edbennett / cogs3

Project Management System
MIT License
0 stars 2 forks source link

PI can't see link but can edit #142

Open markgdawson opened 5 years ago

markgdawson commented 5 years ago

The PI of a funding source does not see a link on the funding source list, but can visit the funding source update URI, for example: en-gb/funding/1/update/

Logic for validation on the update URI and displaying the link should ideally be the same (potentially using the same code?).

markgdawson commented 5 years ago

For completeness, the owner of the project can edit as well (if they happen to be different). Haven't tested for any other types of user.

edbennett commented 5 years ago

I don't see this? Going to /update redirects to /detail, unless the user has the funding.approve_funding_sources permission.

markgdawson commented 5 years ago

I think I can guess what's going on here, I had permission that approving users have. And because the logic related to her workflow is funny (i.e. relies on multiple redirects) that's not reflected in the links..