TheGU / omoma

Automatically exported from code.google.com/p/omoma
GNU General Public License v3.0
0 stars 0 forks source link

Error after acceptin an IOU #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After accepting an IOU and creating an attached transaction, I am redirected to 
the iou page (/iou/1) and I get an error saying I am not authorised to access 
it.

I guess it is because the iou is owned by the emitter maybe?

Thanks

Original issue reported on code.google.com by victor.n...@gmail.com on 10 Aug 2011 at 5:38

GoogleCodeExporter commented 9 years ago
We are using IOUs without any problem.

Could you give details on how to reproduce this ?

Original comment by sebast...@tiramiseb.fr on 10 Aug 2011 at 6:00

GoogleCodeExporter commented 9 years ago
Hi, yes,

I created 2 users with each one an account.

I went to the first account and added a transaction saying I gave money to.
I put the name of the other with the same amount in the first of the 
people/amount case.
By the way, the form is very hard to read, and if you don't put any amount with 
the person, I don't know why, it put half of it by default, so I changed back 
to the right amount after when editing the transaction.

Then I went to the other user, I saw the message saying there was an IOU 
waiting for approval, I selected it.
There I got a form to enter a new transaction (and by the way, it showed me as 
a possible matching transaction, an old transaction I had already deleted).
So, I just entered a description (by the way, it could be already filled with 
the description of the IOU, no?) and clicked create and go back.

And there I got redirected to the url : /iou/1/ and I got the message:
"Vous n'êtes pas autorisé à voir cette page !" (yes, I'm french as you maybe 
would have guessed :P)

And that's all!

Original comment by victor.n...@gmail.com on 10 Aug 2011 at 6:31

GoogleCodeExporter commented 9 years ago
Okay, I have the same problem here.
Correcting this seems complex... I prefer focusing on the new version I talked 
about on another issue.
But the issue will not be closed, of course !

> By the way, the form is very hard to read,

Yep, the new version would be far better on that side (I hope) :)

> if you don't put any amount with the person, I don't know why, it put half of 
it by default

The base idea is when I buy food for me and my girlfriend, I spend for example 
48,72 EUR and just mark her as "I paid for her", the IOU amount is 
automatically calculated to 24,36 EUR. But it should be easier to chose if you 
want 50% or 100% for the IOU, etc. It will be easier, again, in the new version 
!

> and by the way, it showed me as a possible matching transaction, an old 
transaction I had already deleted

One more bug... :-)

> by the way, it could be already filled with the description of the IOU, no?

Yep, it could.

Original comment by sebast...@tiramiseb.fr on 10 Aug 2011 at 7:42