-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any user can return any borrowed tool #91
Comments
@destos I will like to work on this issue. Can you please assign it to me? |
@varunu28 It won't let me assign it to you. Possibly due to you not being in the organization. I would just start working on it. First, get toolhub setup locally if you haven't already. At that point, we can discuss the implementation of this feature. |
@destos Sure thing. I will get started with the setup on my local machine |
@destos I have finished the setup locally and was also able to replicate the issue on my local machine. Here the |
@varunu28 Glad you got it all setup! It was implemented as two views, a borrow, and a return. They take post data from the templatetag form code and perform the return/borrow action. The validation logic probably needs to go in that form. https://github.com/bkmakerspace/toolhub/blob/master/borrowing/forms.py |
@destos Thanks a ton. Will get started on this |
Describe the bug
When browsing tools, if another user has borrowed a tool. You're able to return it even, if it isn't your tool or you aren't the one borrowing it.
Expected behavior
When you've borrowed a tool you're able to return it. If a tool of yours is borrowed you're also able to set it as returned.
The text was updated successfully, but these errors were encountered: