Help needed new developer here!

29 views
Skip to first unread message

Silver Trinity

unread,
Oct 13, 2022, 3:41:48 PM10/13/22
to Django users
Hey all, I am a learning developer, working with an existing codebase. The previous developer did things his way, so the code may seem a little confusing. I am working on a bug, the issue is as follows: Different users from the same company can sign into their account and access the company folders and files uploaded/created by other employees. The files are all uploaded to a management panel. Currently the code looks for the primary folder and the users folder. For some reason because of this, the folders are not showing up. ie. if i make a folder as an employee, its not showing up in the admins panel, and vice versa. I want it to look at the primary and the company folder. I have made a relationship between DocumentFolder and Company models. Please help me in understanding the syntax I need to use to look at the appropriate folders, still very new to programming. If I have left out any important information, I apologize and will be more than willing to provide more information. Thank you.
Screenshot from 2022-10-12 08-25-02.png
Screenshot from 2022-10-12 08-23-37.png
Screenshot from 2022-10-11 18-44-34.png
Screenshot from 2022-10-12 08-24-00.png
Screenshot from 2022-10-12 08-24-45.png
Reply all
Reply to author
Forward
0 new messages